[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>
This commit is contained in:
parent
54810342f1
commit
26bb83a755
|
@ -1865,9 +1865,7 @@ again:
|
|||
fx_restore(vcpu->host_fx_image);
|
||||
vcpu->interrupt_window_open = (vmcs_read32(GUEST_INTERRUPTIBILITY_INFO) & 3) == 0;
|
||||
|
||||
#ifndef CONFIG_X86_64
|
||||
asm ("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS));
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Profile KVM exit RIPs:
|
||||
|
|
Loading…
Reference in New Issue