diff options
author | 2022-03-22 19:24:48 +0200 | |
---|---|---|
committer | 2022-04-02 05:37:26 -0400 | |
commit | 880993138396f8f0be620c425d08f84490c35251 (patch) | |
tree | b586f8d40d19238f593bf0cf3b13eef90129912a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | kvm: x86: SVM: remove unused defines (diff) | |
download | wireguard-linux-880993138396f8f0be620c425d08f84490c35251.tar.xz wireguard-linux-880993138396f8f0be620c425d08f84490c35251.zip |
KVM: x86: SVM: fix tsc scaling when the host doesn't support it
It was decided that when TSC scaling is not supported,
the virtual MSR_AMD64_TSC_RATIO should still have the default '1.0'
value.
However in this case kvm_max_tsc_scaling_ratio is not set,
which breaks various assumptions.
Fix this by always calculating kvm_max_tsc_scaling_ratio regardless of
host support. For consistency, do the same for VMX.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220322172449.235575-8-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions