diff options
author | Sean Christopherson <seanjc@google.com> | 2024-11-28 04:34:19 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-12-19 01:20:18 +0300 |
commit | 75c489e12d4b90d8aa5ffb34c3c907ef717fe38e (patch) | |
tree | fd37384d74eba60a2a58bcd67ab59e0515413f06 /tools/perf/scripts/python | |
parent | cbdeea032bfe24ad9ef13a0c476ada405316758d (diff) | |
download | linux-75c489e12d4b90d8aa5ffb34c3c907ef717fe38e.tar.xz |
KVM: x86: Add a macro for features that are synthesized into boot_cpu_data
Add yet another CPUID macro, this time for features that the host kernel
synthesizes into boot_cpu_data, i.e. that the kernel force sets even in
situations where the feature isn't reported by CPUID. Thanks to the
macro shenanigans of kvm_cpu_cap_init(), such features can now be handled
in the core CPUID framework, i.e. don't need to be handled out-of-band and
thus without as many guardrails.
Adding a dedicated macro also helps document what's going on, e.g. the
calls to kvm_cpu_cap_check_and_set() are very confusing unless the reader
knows exactly how kvm_cpu_cap_init() generates kvm_cpu_caps (and even
then, it's far from obvious).
Link: https://lore.kernel.org/r/20241128013424.4096668-53-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