KVM: SVM: Fix FPU leak while emulating clts
authorAmit Shah <amit.shah@qumranet.com>
Sun, 2 Dec 2007 11:18:44 +0000 (13:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:50:56 +0000 (09:50 -0800)
commitc5c1366253addd6691d620f18f7e660c4e11b08d
tree4e81ac35bb79ddc8fad4cd4e158799efdf492004
parent86a1b7f0192d2f66a302a681fd76ce701f711953
KVM: SVM: Fix FPU leak while emulating clts

patch 404fb881b82cf0cf6981832f8d31a7484e4dee81 in mainline.

The clts code didn't use set_cr0 properly, so our lazy FPU
processing wasn't being done by the clts instruction at all.

(this isn't called on Intel as the hardware does the decode for us)

Signed-off-by: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/kvm/kvm_main.c