diff options
author | 2024-12-10 17:33:00 -0800 | |
---|---|---|
committer | 2025-02-12 10:16:31 -0800 | |
commit | 7e9f735e7ac4b95207e108ec67d04a9c4cb9cced (patch) | |
tree | 1839f067c39ca19fc85730a2163cd6d7c229ee5c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86: Use for-loop to iterate over XSTATE size entries (diff) | |
download | linux-rng-7e9f735e7ac4b95207e108ec67d04a9c4cb9cced.tar.xz linux-rng-7e9f735e7ac4b95207e108ec67d04a9c4cb9cced.zip |
KVM: x86: Apply TSX_CTRL_CPUID_CLEAR if and only if the vCPU has RTM or HLE
When emulating CPUID, retrieve MSR_IA32_TSX_CTRL.TSX_CTRL_CPUID_CLEAR if
and only if RTM and/or HLE feature bits need to be cleared. Getting the
MSR value is unnecessary if neither bit is set, and avoiding the lookup
saves ~80 cycles for vCPUs without RTM or HLE.
Cc: Jim Mattson <jmattson@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Link: https://lore.kernel.org/r/20241211013302.1347853-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions