ia64/xen-unstable

changeset 6832:5959fae4722a

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@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Sep 14 13:37:50 2005 +0000 (2005-09-14)
parents 5e943af66571
children e2f0a6fdb7d9
files xen/arch/x86/vmx.c
line diff
     1.1 --- a/xen/arch/x86/vmx.c	Wed Sep 14 13:34:14 2005 +0000
     1.2 +++ b/xen/arch/x86/vmx.c	Wed Sep 14 13:37:50 2005 +0000
     1.3 @@ -1021,7 +1021,7 @@ static int vmx_set_cr0(unsigned long val
     1.4       * CR0: We don't want to lose PE and PG.
     1.5       */
     1.6      paging_enabled = vmx_paging_enabled(d);
     1.7 -    __vmwrite(GUEST_CR0, (value | X86_CR0_PE | X86_CR0_PG));
     1.8 +    __vmwrite(GUEST_CR0, value | X86_CR0_PE | X86_CR0_PG | X86_CR0_NE);
     1.9      __vmwrite(CR0_READ_SHADOW, value);
    1.10  
    1.11      VMX_DBG_LOG(DBG_LEVEL_VMMU, "Update CR0 value = %lx\n", value);