diff options
author | Avi Kivity <avi@qumranet.com> | 2009-08-06 21:39:42 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-09 07:16:59 +0400 |
commit | e4aeb2441ab83214d8a423f21e254f9c666e3c00 (patch) | |
tree | ed769de1311a511ea29be7944242dbf87add4ac2 | |
parent | 96534837735ed064448e8ef748f4c9178356d28b (diff) | |
download | linux-e4aeb2441ab83214d8a423f21e254f9c666e3c00.tar.xz |
KVM: VMX: Change segment dpl at reset to 3
(cherry picked from commit a16b20da879430fdf245ed45461ed40ffef8db3c)
This is more emulation friendly, if not 100% correct.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-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 1379f2682a08..951b4d5aa10f 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -1789,7 +1789,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) |