Skip to content

Commit 2b23c3a

Browse files
committed
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 <[email protected]>
1 parent 506cfba commit 2b23c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/svm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4550,9 +4550,9 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
45504550
#endif
45514551
);
45524552

4553+
#ifdef CONFIG_X86_64
45534554
if (static_cpu_has(X86_FEATURE_RDTSCP))
45544555
wrmsrl(MSR_TSC_AUX, __getcpu());
4555-
#ifdef CONFIG_X86_64
45564556
wrmsrl(MSR_GS_BASE, svm->host.gs_base);
45574557
#else
45584558
loadsegment(fs, svm->host.fs);

0 commit comments

Comments
 (0)