KVM: Prevent guest fpu state from leaking into the host
authorAvi Kivity <avi@qumranet.com>
Thu, 14 Jun 2007 13:27:40 +0000 (16:27 +0300)
committerAvi Kivity <avi@qumranet.com>
Fri, 15 Jun 2007 09:30:59 +0000 (12:30 +0300)
commit7702fd1f6fea57921f2e643d27a23a2d0394499c
tree9a5275fb2f5eaccc491bfe5d9617c3da7f69aa5a
parent22b1a9203ea634ac0ee5240e021613da3328275f
KVM: Prevent guest fpu state from leaking into the host

The lazy fpu changes did not take into account that some vmexit handlers
can sleep.  Move loading the guest state into the inner loop so that it
can be reloaded if necessary, and move loading the host state into
vmx_vcpu_put() so it can be performed whenever we relinquish the vcpu.

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