KVM: VMX: Fix host GDT.LIMIT corruption
authorAvi Kivity <avi@redhat.com>
Mon, 26 Jul 2010 15:32:38 +0000 (18:32 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 05:10:18 +0000 (08:10 +0300)
commit3444d7da1839b851eefedd372978d8a982316c36
treeb9fef27fbe36b455dc242670fa0f4025a2df1dc2
parent9a3aad70572c3f4d55e7f09ac4eb313d41d0a484
KVM: VMX: Fix host GDT.LIMIT corruption

vmx does not restore GDT.LIMIT to the host value, instead it sets it to 64KB.
This means host userspace can learn a few bits of host memory.

Fix by reloading GDTR when we load other host state.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c