From: Tim Deegan Subject: Re: [PATCH 19 of 20] Add VMXE bits in virtual CR4 Date: Thu, 2 Jun 2011 16:01:05 +0100 Message-ID: <20110602150105.GO5098@whitby.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Eddie Dong Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 16:57 +0800 on 02 Jun (1307033852), Eddie Dong wrote: > diff -r 0cedbe9214c1 -r c046b2513520 xen/include/asm-x86/hvm/hvm.h > --- a/xen/include/asm-x86/hvm/hvm.h Thu Jun 02 16:33:21 2011 +0800 > +++ b/xen/include/asm-x86/hvm/hvm.h Thu Jun 02 16:33:21 2011 +0800 > @@ -313,6 +313,8 @@ static inline int hvm_do_pmu_interrupt(s > X86_CR4_DE | X86_CR4_PSE | X86_CR4_PAE | \ > X86_CR4_MCE | X86_CR4_PGE | X86_CR4_PCE | \ > X86_CR4_OSFXSR | X86_CR4_OSXMMEXCPT | \ > + ((nestedhvm_enabled((_v)->domain) && \ > + cpu_has_vmx) ? X86_CR4_VMXE : 0) | \ Should we also add VMXE to this mask even if !nestedhvm_enabled()? Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)