]> git.baikalelectronics.ru Git - kernel.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)
commit0318249faf519408a7a2d9f616c3d5a288589f69
tree6b5b4570641fe071b3544ded46a223a11e9f338f
parent644bb4ddbbc093c6183d70c048f4b5f7cfafccc3
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