WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] vmx & efer

To: Jan Beulich <jbeulich@xxxxxxxxxx>, Jun Nakajima <jun.nakajima@xxxxxxxxx>
Subject: Re: [Xen-devel] vmx & efer
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 07 May 2007 09:43:44 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 07 May 2007 01:42:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <463F00FD.76E4.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceQg9HmEFFHz/x3EduS7wAX8io7RQ==
Thread-topic: [Xen-devel] vmx & efer
User-agent: Microsoft-Entourage/11.3.3.061214
On 7/5/07 09:35, "Jan Beulich" <jbeulich@xxxxxxxxxx> 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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>