mirror of
https://github.com/qemu/qemu.git
synced 2024-12-04 09:13:39 +08:00
KVM: SVM: always set MSR_AMD64_TSC_RATIO to default value
Even when the feature is not supported in guest CPUID, still set the msr to the default value which will be the only value KVM will accept in this case Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Message-Id: <20220223115824.319821-1-mlevitsk@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
12cab535db
commit
3e4546d5bd
@ -5997,9 +5997,7 @@ static void x86_cpu_reset(DeviceState *dev)
|
||||
|
||||
x86_cpu_set_sgxlepubkeyhash(env);
|
||||
|
||||
if (env->features[FEAT_SVM] & CPUID_SVM_TSCSCALE) {
|
||||
env->amd_tsc_scale_msr = MSR_AMD64_TSC_RATIO_DEFAULT;
|
||||
}
|
||||
env->amd_tsc_scale_msr = MSR_AMD64_TSC_RATIO_DEFAULT;
|
||||
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user