From: Keir Fraser Subject: Re: vmx & efer Date: Mon, 07 May 2007 09:43:44 +0100 Message-ID: References: <463F00FD.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <463F00FD.76E4.0078.0@novell.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: Jan Beulich , Jun Nakajima Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 7/5/07 09:35, "Jan Beulich" wrote: >> The bit LMA and LME are automaticaly are loaded by the hardware. Please >> look at the spec (Volume 3B). > > Hmm, that cannot be fully true. The description for bit 9 of the VM-Entry > control field says: "Its value is loaded into IA32_EFER.LMA and IA32_EFER.LME > as part of VM entry." However, even if the bit is clear the processor must > remain in 4-level paging mode, and unless I'm missing something there's no > separation between a bit controlling long mode in terms of the effect the > L-bit of a code descriptor has (and e.g. requiring 64-bit gates in descriptor > tables) and a bit controlling the paging mode. So in reality there must be > two bits (and hence neither of them can be considered EFER.LME or EFER.LMA). You seem to be assuming that if the hypervisor executes with 4-level pagetables then so must all VMX guests. This isn't true. A VMX VCPU running in 32-bit mode (PAE or not) will execute with 3-level pagetables when running on x86/64 Xen. -- Keir