Files
linux/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
..
2010-09-26 17:21:43 -07:00
2010-09-26 17:21:32 -07:00
2010-01-18 10:19:11 -08:00
2010-01-18 10:19:11 -08:00
2010-07-05 11:10:49 -07:00
2010-01-18 10:19:11 -08:00
2010-01-18 10:19:11 -08:00
2010-07-05 11:10:48 -07:00
2010-01-18 10:19:11 -08:00
2010-01-18 10:19:11 -08:00
2010-04-26 07:41:17 -07:00
2010-07-05 11:10:50 -07:00