From: Avi Kivity Date: Tue, 27 Nov 2007 13:33:10 +0000 (+0200) Subject: KVM: SVM: Unload guest fpu on vcpu_put() X-Git-Tag: v2.6.24-rc4~86^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8d379a7c069179a98616c9cac6bb2a06a500de49;p=linux-2.6-omap-h63xx.git KVM: SVM: Unload guest fpu on vcpu_put() Not unloading the guest fpu can cause fpu leaks from guest to guest (or host to guest). Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 7a6eead63a6..4e04e49a2f1 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c @@ -663,6 +663,7 @@ static void svm_vcpu_put(struct kvm_vcpu *vcpu) wrmsrl(host_save_user_msrs[i], svm->host_user_msrs[i]); rdtscll(vcpu->host_tsc); + kvm_put_guest_fpu(vcpu); } static void svm_vcpu_decache(struct kvm_vcpu *vcpu)