]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: Fix potential guest state leak into host
authorAvi Kivity <avi@qumranet.com>
Wed, 2 May 2007 13:54:03 +0000 (16:54 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:39 +0000 (12:05 +0300)
commit33ed6329210f3ad0638306bfa46cd3aaf5a5f929
tree6b5b4570641fe071b3544ded46a223a11e9f338f
parent7494c0ccbb8fa0903bcb1ced89cc2b79c3624974
KVM: Fix potential guest state leak into host

The lightweight vmexit path avoids saving and reloading certain host
state.  However in certain cases lightweight vmexit handling can schedule()
which requires reloading the host state.

So we store the host state in the vcpu structure, and reloaded it if we
relinquish the vcpu.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/vmx.c