]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca2f32cc729e0df6c640c91973e949132d4ef540
treeb9fef27fbe36b455dc242670fa0f4025a2df1dc2
parentbf2f429c5df00a7da4239c7c29361edaf874e599
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