summaryrefslogtreecommitdiff
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-07-14 20:08:18 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2016-07-14 20:11:29 +0300
commit2b23c3a6e3eb2fba77eb35fdfa3d71a9aa3f33b7 (patch)
tree102301af3cc32f5e503a8a4c9aa90310eacb8996 /arch/x86/kvm
parent506cfba9e726ab6842883fdd567a9a7c467e7492 (diff)
downloadlinux-2b23c3a6e3eb2fba77eb35fdfa3d71a9aa3f33b7.tar.xz
KVM: SVM: do not set MSR_TSC_AUX on 32-bit builds
This is unnecessary---and besides, __getcpu() is not even available on 32-bit builds. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index f931d3e33c7f..05c08b69cee7 100644
--- 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);