mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
KVM: SVM: add migration support for nested TSC scaling
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Message-Id: <20211101132300.192584-4-mlevitsk@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6aedeb650e
commit
cabf9862e4
4 changed files with 46 additions and 0 deletions
|
@ -5928,6 +5928,11 @@ 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;
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue