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>
This commit is contained in:
parent
506cfba9e7
commit
2b23c3a6e3
1 changed files with 1 additions and 1 deletions
|
@ -4550,9 +4550,9 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#ifdef CONFIG_X86_64
|
||||||
if (static_cpu_has(X86_FEATURE_RDTSCP))
|
if (static_cpu_has(X86_FEATURE_RDTSCP))
|
||||||
wrmsrl(MSR_TSC_AUX, __getcpu());
|
wrmsrl(MSR_TSC_AUX, __getcpu());
|
||||||
#ifdef CONFIG_X86_64
|
|
||||||
wrmsrl(MSR_GS_BASE, svm->host.gs_base);
|
wrmsrl(MSR_GS_BASE, svm->host.gs_base);
|
||||||
#else
|
#else
|
||||||
loadsegment(fs, svm->host.fs);
|
loadsegment(fs, svm->host.fs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue