Skip to content

Commit

Permalink
KVM: SVM: Unload guest fpu on vcpu_put()
Browse files Browse the repository at this point in the history
Not unloading the guest fpu can cause fpu leaks from guest to guest (or host
to guest).

Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
avikivity committed Nov 27, 2007
1 parent 00b2ef4 commit 8d379a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8d379a7

Please sign in to comment.