diff options
author | Avi Kivity <avi@qumranet.com> | 2007-11-27 08:33:10 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-11-27 08:33:10 -0500 |
commit | 8d379a7c069179a98616c9cac6bb2a06a500de49 (patch) | |
tree | 40d9b3b5fc83b773d218abf849269f2736c78f5f /drivers/kvm/svm.c | |
parent | 00b2ef475d4728ca53a2bc788c7978042907e354 (diff) |
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 <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 7a6eead63a6b..4e04e49a2f1c 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c | |||
@@ -663,6 +663,7 @@ static void svm_vcpu_put(struct kvm_vcpu *vcpu) | |||
663 | wrmsrl(host_save_user_msrs[i], svm->host_user_msrs[i]); | 663 | wrmsrl(host_save_user_msrs[i], svm->host_user_msrs[i]); |
664 | 664 | ||
665 | rdtscll(vcpu->host_tsc); | 665 | rdtscll(vcpu->host_tsc); |
666 | kvm_put_guest_fpu(vcpu); | ||
666 | } | 667 | } |
667 | 668 | ||
668 | static void svm_vcpu_decache(struct kvm_vcpu *vcpu) | 669 | static void svm_vcpu_decache(struct kvm_vcpu *vcpu) |