Re: [PATCH] KVM: VMX: Fix host userspace gsbase corruption

2010-11-16 Thread Marcelo Tosatti
On Thu, Nov 11, 2010 at 12:37:26PM +0200, Avi Kivity wrote: 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 -

[PATCH] KVM: VMX: Fix host userspace gsbase corruption

2010-11-11 Thread Avi Kivity
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 -