projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00b2ef4
)
KVM: SVM: Unload guest fpu on vcpu_put()
author
Avi Kivity
<avi@qumranet.com>
Tue, 27 Nov 2007 13:33:10 +0000
(15:33 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Tue, 27 Nov 2007 13:33:10 +0000
(15:33 +0200)
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>
drivers/kvm/svm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/kvm/svm.c
b/drivers/kvm/svm.c
index 7a6eead63a6bc14537d36fb09756ba5001bc8634..4e04e49a2f1c35f626fa24d3d5d3f1ea5d115869 100644
(file)
--- 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)