linux-uconsole/arch
Ben Hutchings fda45f0be5 KVM: VMX: Fix host userspace gsbase corruption
commit c8770e7ba6 upstream.

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>
[bwh: Backport to 2.6.32]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-12-09 13:26:48 -08:00
..
alpha alpha: Fix printk format errors 2010-09-26 17:21:43 -07:00
arm AT91: change dma resource index 2010-09-26 17:21:32 -07:00
avr32 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
blackfin Blackfin: set ARCH_KMALLOC_MINALIGN 2010-07-05 11:10:50 -07:00
cris untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
frv frv: set ARCH_KMALLOC_MINALIGN 2010-07-05 11:10:49 -07:00
h8300 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
ia64 IA64: Optimize ticket spinlocks in fsys_rt_sigprocmask 2010-09-26 17:21:29 -07:00
m32r untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
m68k m68k: set ARCH_KMALLOC_MINALIGN 2010-07-05 11:10:48 -07:00
m68knommu untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
microblaze microblaze: Fix build with make 3.82 2010-12-09 13:26:34 -08:00
mips MIPS: Sibyte: Fix M3 TLB exception handler workaround. 2010-09-26 17:21:40 -07:00
mn10300 mn10300: set ARCH_KMALLOC_MINALIGN 2010-07-05 11:10:47 -07:00
parisc compat: Make compat_alloc_user_space() incorporate the access_ok() 2010-09-20 13:17:57 -07:00
powerpc powerpc/perf: Fix sampling enable for PPC970 2010-11-22 10:47:30 -08:00
s390 compat: Make compat_alloc_user_space() incorporate the access_ok() 2010-09-20 13:17:57 -07:00
score untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
sh sh: Fix FDPIC binary loader 2010-04-26 07:41:17 -07:00
sparc sparc64: Get rid of indirect p1275 PROM call buffer. 2010-09-26 17:21:22 -07:00
um um: fix global timer issue when using CONFIG_NO_HZ 2010-12-09 13:26:38 -08:00
x86 KVM: VMX: Fix host userspace gsbase corruption 2010-12-09 13:26:48 -08:00
xtensa xtensa: set ARCH_KMALLOC_MINALIGN 2010-07-05 11:10:50 -07:00
.gitignore
Kconfig oprofile: remove tracing build dependency 2010-03-15 08:49:47 -07:00