diff options
author | Avi Kivity <avi@qumranet.com> | 2007-02-12 03:54:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:40 -0500 |
commit | 26bb83a755593a53bd248e20d699b0c813f1e238 (patch) | |
tree | 8ab2636e03593fe7dd6149aaaae4997fc71a44cd | |
parent | 54810342f1372afdaf6cb9a6aea0c35df187db12 (diff) |
[PATCH] kvm: VMX: Reload ds and es even in 64-bit mode
Or 32-bit userspace will get confused.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/kvm/vmx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index e152caa9d9f9..407862825c1f 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -1865,9 +1865,7 @@ again: | |||
1865 | fx_restore(vcpu->host_fx_image); | 1865 | fx_restore(vcpu->host_fx_image); |
1866 | vcpu->interrupt_window_open = (vmcs_read32(GUEST_INTERRUPTIBILITY_INFO) & 3) == 0; | 1866 | vcpu->interrupt_window_open = (vmcs_read32(GUEST_INTERRUPTIBILITY_INFO) & 3) == 0; |
1867 | 1867 | ||
1868 | #ifndef CONFIG_X86_64 | ||
1869 | asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS)); | 1868 | asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS)); |
1870 | #endif | ||
1871 | 1869 | ||
1872 | /* | 1870 | /* |
1873 | * Profile KVM exit RIPs: | 1871 | * Profile KVM exit RIPs: |