ia64/xen-unstable

changeset 12566:6d892ea6194d

[VMX] Make sure that the WP bit is always set in CR0 when running SVM guests.
This is the VMX equivalent of cset 12525:4ddda0bbb57c.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Thu Nov 23 18:01:40 2006 +0000 (2006-11-23)
parents cd40792968cb
children d9f2de16ae5a
files xen/arch/x86/hvm/vmx/vmx.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Thu Nov 23 17:54:06 2006 +0000
     1.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Thu Nov 23 18:01:40 2006 +0000
     1.3 @@ -1373,7 +1373,8 @@ static int vmx_set_cr0(unsigned long val
     1.4          __vm_clear_bit(EXCEPTION_BITMAP, EXCEPTION_BITMAP_NM);
     1.5      }
     1.6  
     1.7 -    v->arch.hvm_vmx.cpu_cr0 = value | X86_CR0_PE | X86_CR0_PG | X86_CR0_NE;
     1.8 +    v->arch.hvm_vmx.cpu_cr0 = (value | X86_CR0_PE | X86_CR0_PG 
     1.9 +                               | X86_CR0_NE | X86_CR0_WP);
    1.10      __vmwrite(GUEST_CR0, v->arch.hvm_vmx.cpu_cr0);
    1.11  
    1.12      v->arch.hvm_vmx.cpu_shadow_cr0 = value;