KVM: VMX: Change segment dpl at reset to 3
authorAvi Kivity <avi@qumranet.com>
Wed, 20 Aug 2008 12:48:27 +0000 (15:48 +0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:21 +0000 (10:15 +0200)
This is more emulation friendly, if not 100% correct.

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/vmx.c

index 6aa305ace79fd815f496e56089c7120a9bfad7de..71e57ae1cab70ea739d452ecd0a3a5d041559802 100644 (file)
@@ -1991,7 +1991,7 @@ static void seg_setup(int seg)
        vmcs_write16(sf->selector, 0);
        vmcs_writel(sf->base, 0);
        vmcs_write32(sf->limit, 0xffff);
-       vmcs_write32(sf->ar_bytes, 0x93);
+       vmcs_write32(sf->ar_bytes, 0xf3);
 }
 
 static int alloc_apic_access_page(struct kvm *kvm)