From: Tim Deegan Subject: Re: [PATCH]Fix vlapic.h type Date: Wed, 8 Jul 2009 10:33:46 +0100 Message-ID: <20090708093346.GA5235@york.uk.xensource.com> References: <4A53BC08.1040100@amd.com> <4A544B76.6000304@citrix.com> <4A5463A6.5030001@solarflare.com> <4A546757.5030205@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <4A546757.5030205@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Patrick Colp Cc: Wei Huang , Neil Turton , "'xen-devel@lists.xensource.com'" List-Id: xen-devel@lists.xenproject.org At 10:31 +0100 on 08 Jul (1247049063), Patrick Colp wrote: > Neil Turton wrote: > > Patrick Colp wrote: > >> Good catch. This line: > >> > >> #define vlapic_vcpu(vpic) (container_of((vpic), struct vcpu, \ > >> arch.hvm_vcpu.vlapic)) > >> > >> should probably also be changed to this: > >> > >> #define vlapic_vcpu(vlapic) (container_of((vlapic), struct vcpu, \ > >> arch.hvm_vcpu.vlapic)) > > > > I'm not sure. Do you intend to change the member name after hvm_vcpu > > based on the macro parameter? > > No. Why would I do that? > > The issue here is that the macro parameter is referring to a vlapic and not a > vpic (which is something different). So for the sake of clarity, it should be > changed to vlapic instead of vpic. but vlapic_vcpu(oops) would expand to (container_of((oops), struct vcpu, arch.hvm_vcpu.oops) ^^^^ Tim. -- Tim Deegan Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]