diff options
author | Avi Kivity <avi@qumranet.com> | 2008-08-20 08:48:27 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:21 -0400 |
commit | a16b20da879430fdf245ed45461ed40ffef8db3c (patch) | |
tree | 19868d9c7653c7c6034f3b9d8f09617ade073b19 /arch/x86/kvm/vmx.c | |
parent | 5706be0dafd6f42852f85fbae292301dcad4ccec (diff) |
KVM: VMX: Change segment dpl at reset to 3
This is more emulation friendly, if not 100% correct.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6aa305ace79f..71e57ae1cab7 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -1991,7 +1991,7 @@ static void seg_setup(int seg) | |||
1991 | vmcs_write16(sf->selector, 0); | 1991 | vmcs_write16(sf->selector, 0); |
1992 | vmcs_writel(sf->base, 0); | 1992 | vmcs_writel(sf->base, 0); |
1993 | vmcs_write32(sf->limit, 0xffff); | 1993 | vmcs_write32(sf->limit, 0xffff); |
1994 | vmcs_write32(sf->ar_bytes, 0x93); | 1994 | vmcs_write32(sf->ar_bytes, 0xf3); |
1995 | } | 1995 | } |
1996 | 1996 | ||
1997 | static int alloc_apic_access_page(struct kvm *kvm) | 1997 | static int alloc_apic_access_page(struct kvm *kvm) |