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] vmcs GUEST_CR0 unused?

To: Robert Phillips <rsp.vi.xen@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] vmcs GUEST_CR0 unused?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 01 Feb 2007 23:40:17 +0000
Delivery-date: Thu, 01 Feb 2007 15:40:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <fc060d960702011349w37c18be3j3791a19540fd5402@xxxxxxxxxxxxxx>
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: AcdGWlPIkkHQOLJNEduUNAAX8io7RQ==
Thread-topic: [Xen-devel] vmcs GUEST_CR0 unused?
User-agent: Microsoft-Entourage/11.2.5.060620
On 1/2/07 21:49, "Robert Phillips" <rsp.vi.xen@xxxxxxxxx> wrote:

The same argument applies to hvm_vmx.cup_cr4 and GUEST_CR4.

Am I missing something?


Yes. GUEST_CR0 and GUEST_CR4 are the actual control-register values loaded into the processor when running in VMX context. This can be different from either the value the guest thinks it’s running with, and also different from the value loaded into the processor when running in root context (i.e., in Xen).  They are cached in software structures because it can save a vmread in some situations, which is worth around 50 cycles even on Core 2.

 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>