From: Tim Deegan Subject: Re: [PATCH 10/11] nEPT: expost EPT capablity to L1 VMM Date: Thu, 13 Dec 2012 17:03:53 +0000 Message-ID: <20121213170353.GP75286@ocelot.phlegethon.org> References: <1355162243-11857-1-git-send-email-xiantao.zhang@intel.com> <1355162243-11857-11-git-send-email-xiantao.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1355162243-11857-11-git-send-email-xiantao.zhang@intel.com> 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@intel.com Cc: keir@xen.org, xen-devel@lists.xensource.com, eddie.dong@intel.com, JBeulich@suse.com, jun.nakajima@intel.com List-Id: xen-devel@lists.xenproject.org At 01:57 +0800 on 11 Dec (1355191042), xiantao.zhang@intel.com wrote: > --- a/xen/arch/x86/mm/hap/nested_ept.c > +++ b/xen/arch/x86/mm/hap/nested_ept.c > @@ -48,7 +48,7 @@ > #define EPT_EMT_WB 6 > #define EPT_EMT_UC 0 > > -#define NEPT_VPID_CAP_BITS 0 > +#define NEPT_VPID_CAP_BITS 0x0000000006134140ul Ah, I didn't spot this earlier. I think for clarity the definition of nept_get_ept_vpid_cap() should be moved entirely into this faile (and presuambly the TODO comment can be removed). Where does the magic number 0x0000000006134140ul come from? Can it be broken out into meaningful constants? Cheers, Tim.