From: "Jan Beulich" Subject: Re: [PATCH 05/11] EPT: Make ept data structure or operations neutral Date: Mon, 17 Dec 2012 09:56:37 +0000 Message-ID: <50CEFA6502000078000B0AF3@nat28.tlf.novell.com> References: <1355162243-11857-1-git-send-email-xiantao.zhang@intel.com> <1355162243-11857-6-git-send-email-xiantao.zhang@intel.com> <20121213160417.GK75286@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xiantao Zhang Cc: "keir@xen.org" , "xen-devel@lists.xensource.com" , Eddie Dong , Jun Nakajima , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 17.12.12 at 09:57, "Zhang, Xiantao" wrote: >> -----Original Message----- >> From: Tim Deegan [mailto:tim@xen.org] >> Sent: Friday, December 14, 2012 12:04 AM >> To: Zhang, Xiantao >> Cc: xen-devel@lists.xensource.com; Dong, Eddie; keir@xen.org; Nakajima, >> Jun; JBeulich@suse.com >> Subject: Re: [Xen-devel] [PATCH 05/11] EPT: Make ept data structure or >> operations neutral >> >> At 01:57 +0800 on 11 Dec (1355191037), xiantao.zhang@intel.com wrote: >> > From: Zhang Xiantao >> > >> > Share the current EPT logic with nested EPT case, so make the related >> > data structure or operations netural to comment EPT and nested EPT. >> > >> > Signed-off-by: Zhang Xiantao >> >> Since the struct ept_data is only 16 bytes long, why not just embed it in > the >> struct p2m_domain, as >> >> > mm_lock_t lock; /* Locking of private pod structs, > * >> > * not relying on the p2m lock. > */ >> > } pod; >> > + union { >> > + struct ept_data ept; >> > + /* NPT equivalent could go here if needed */ >> > + }; >> > }; > > Hi, Tim > Thanks for your review! If we change it like this, p2m.h have to > include asm/hvm/vmx/vmcs.h, is it acceptable ? I'm sure there are ways to avoid such a dependency. Jan