linux/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
..
emulate.c KVM: fix typo in copyright notice 2010-10-24 10:53:14 +02:00
i8254.c KVM: fix typo in copyright notice 2010-10-24 10:53:14 +02:00
i8254.h KVM: x86: Introduce a workqueue to deliver PIT timer interrupts 2010-08-01 10:46:49 +03:00
i8259.c KVM: fix typo in copyright notice 2010-10-24 10:53:14 +02:00
irq.c KVM: fix typo in copyright notice 2010-10-24 10:53:14 +02:00
irq.h KVM: Convert PIC lock from raw spinlock to ordinary spinlock 2010-10-24 10:52:56 +02:00
Kconfig KVM: MMU: support disable/enable mmu audit dynamicly 2010-10-24 10:51:56 +02:00
kvm_cache_regs.h KVM: MMU: Introduce kvm_pdptr_read_mmu 2010-10-24 10:52:42 +02:00
kvm_timer.h KVM: arch/x86/kvm/kvm_timer.h checkpatch cleanup 2010-05-17 12:14:42 +03:00
lapic.c Merge branch 'kvm-updates/2.6.37' of git://git.kernel.org/pub/scm/virt/kvm/kvm 2010-10-24 12:47:25 -07:00
lapic.h KVM: Add HYPER-V apic access MSRs 2010-03-01 12:36:00 -03:00
Makefile
mmu_audit.c KVM: fix typo in copyright notice 2010-10-24 10:53:14 +02:00
mmu.c KVM: MMU: fix rmap_remove on non present sptes 2010-11-05 14:42:26 -02:00
mmu.h KVM: MMU: Don't track nested fault info in error-code 2010-10-24 10:52:55 +02:00
mmutrace.h KVM: MMU: support disable/enable mmu audit dynamicly 2010-10-24 10:51:56 +02:00
paging_tmpl.h KVM: fix typo in copyright notice 2010-10-24 10:53:14 +02:00
svm.c KVM: Correct ordering of ldt reload wrt fs/gs reload 2010-11-17 19:47:59 -02:00
timer.c KVM: fix typo in copyright notice 2010-10-24 10:53:14 +02:00
trace.h KVM: Trace emulated instructions 2010-05-17 12:17:35 +03:00
tss.h
vmx.c KVM: VMX: Fix host userspace gsbase corruption 2010-11-17 19:48:05 -02:00
x86.c KVM: x86: Issue smp_call_function_many with preemption disabled 2010-11-05 14:42:27 -02:00
x86.h KVM: Add kvm_inject_realmode_interrupt() wrapper 2010-10-24 10:53:01 +02:00