projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
506cfba
)
KVM: SVM: do not set MSR_TSC_AUX on 32-bit builds
author
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 14 Jul 2016 17:08:18 +0000
(19:08 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 14 Jul 2016 17:11:29 +0000
(19:11 +0200)
This is unnecessary---and besides, __getcpu() is not even
available on 32-bit builds.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/svm.c
b/arch/x86/kvm/svm.c
index f931d3e33c7f129a88ef8f91b53df9431a14e279..05c08b69cee7783c148f90f6bd545722e2c98583 100644
(file)
--- a/
arch/x86/kvm/svm.c
+++ b/
arch/x86/kvm/svm.c
@@
-4550,9
+4550,9
@@
static void svm_vcpu_run(struct kvm_vcpu *vcpu)
#endif
);
+#ifdef CONFIG_X86_64
if (static_cpu_has(X86_FEATURE_RDTSCP))
wrmsrl(MSR_TSC_AUX, __getcpu());
-#ifdef CONFIG_X86_64
wrmsrl(MSR_GS_BASE, svm->host.gs_base);
#else
loadsegment(fs, svm->host.fs);