aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-11-27 17:33:28 -0800
committerSean Christopherson <seanjc@google.com>2024-12-18 14:19:22 -0800
commitccf4c1d15d5a593bb3a50911ce3e8bb373feddc5 (patch)
treecd34c6974945a1ea30bde1c1576a332b8b59360c /tools/perf/scripts/python
parentKVM: selftests: Override ARCH for x86_64 instead of using ARCH_DIR (diff)
downloadlinux-ccf4c1d15d5a593bb3a50911ce3e8bb373feddc5.tar.gz
linux-ccf4c1d15d5a593bb3a50911ce3e8bb373feddc5.zip
KVM: x86: Use feature_bit() to clear CONSTANT_TSC when emulating CPUID
When clearing CONSTANT_TSC during CPUID emulation due to a Hyper-V quirk, use feature_bit() instead of SF() to ensure the bit is actually cleared. SF() evaluates to zero if the _host_ doesn't support the feature. I.e. KVM could keep the bit set if userspace advertised CONSTANT_TSC despite it not being supported in hardware. Note, translating from a scattered feature to a the hardware version is done by __feature_translate(), not SF(). The sole purpose of SF() is to check kernel support for the scattered feature, *before* translation. Cc: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Link: https://lore.kernel.org/r/20241128013424.4096668-2-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions