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

[Xen-devel] [PATCH][VT] Set NE bit for VMX guest CR0

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][VT] Set NE bit for VMX guest CR0
From: "Li, Chengyuan" <chengyuan.li@xxxxxxxxx>
Date: Wed, 14 Sep 2005 20:51:35 +0800
Delivery-date: Wed, 14 Sep 2005 12:49:27 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: AcW5KwoeviounY0YTfGEwxRmZHbvoQ==
Thread-topic: [PATCH][VT] Set NE bit for VMX guest CR0
Set NE bit for VMX guest CR0

VMCS guest CR0.NE bit must be set, else it will cause "vm-entry failed".

Signed-off-by: Chengyuan Li <chengyuan.li@xxxxxxxxx>


diff -r 94990f123e5e xen/arch/x86/vmx.c
--- a/xen/arch/x86/vmx.c        Wed Sep 14 10:58:00 2005
+++ b/xen/arch/x86/vmx.c        Wed Sep 14 20:47:53 2005
@@ -1021,7 +1021,7 @@
      * CR0: We don't want to lose PE and PG.
      */
     paging_enabled = vmx_paging_enabled(d);
-    __vmwrite(GUEST_CR0, (value | X86_CR0_PE | X86_CR0_PG));
+    __vmwrite(GUEST_CR0, (value | X86_CR0_PE | X86_CR0_PG |
X86_CR0_NE));
     __vmwrite(CR0_READ_SHADOW, value);

     VMX_DBG_LOG(DBG_LEVEL_VMMU, "Update CR0 value = %lx\n", value);

Thanks,
Chengyuan


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][VT] Set NE bit for VMX guest CR0, Li, Chengyuan <=