original_kernel/arch/x86/kvm
Avi Kivity c8770e7ba6 KVM: VMX: Fix host userspace gsbase corruption
We now use load_gs_index() to load gs safely; unfortunately this also
changes MSR_KERNEL_GS_BASE, which we managed separately.  This resulted
in confusion and breakage running 32-bit host userspace on a 64-bit kernel.

Fix by
- saving guest MSR_KERNEL_GS_BASE before we we reload the host's gs
- doing the host save/load unconditionally, instead of only when in guest
  long mode

Things can be cleaned up further, but this is the minmal fix for now.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-11-17 19:48:05 -02:00
..
Kconfig
Makefile
emulate.c
i8254.c
i8254.h
i8259.c
irq.c
irq.h
kvm_cache_regs.h
kvm_timer.h
lapic.c
lapic.h
mmu.c
mmu.h
mmu_audit.c
mmutrace.h
paging_tmpl.h
svm.c
timer.c
trace.h
tss.h
vmx.c KVM: VMX: Fix host userspace gsbase corruption 2010-11-17 19:48:05 -02:00
x86.c
x86.h