Commit 8d379a7c069179a98616c9cac6bb2a06a500de49

Authored by Avi Kivity
1 parent 00b2ef475d

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -663,6 +663,7 @@
663 663 wrmsrl(host_save_user_msrs[i], svm->host_user_msrs[i]);
664 664  
665 665 rdtscll(vcpu->host_tsc);
  666 + kvm_put_guest_fpu(vcpu);
666 667 }
667 668  
668 669 static void svm_vcpu_decache(struct kvm_vcpu *vcpu)