Skip to content

Commit

Permalink
KVM: SVM: do not set MSR_TSC_AUX on 32-bit builds
Browse files Browse the repository at this point in the history
This is unnecessary---and besides, __getcpu() is not even
available on 32-bit builds.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Paolo Bonzini committed Jul 14, 2016
1 parent 506cfba commit 2b23c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b23c3a

Please sign in to comment.