]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8541f229e8949ee663022f06d0cf901c1ac72c37
tree9a5275fb2f5eaccc491bfe5d9617c3da7f69aa5a
parent3b944e9c3baf5e3ca296e6c42c0fa9b3bf62ec76
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