summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLike Xu <likexu@tencent.com>2023-06-03 04:10:58 +0300
committerSean Christopherson <seanjc@google.com>2023-06-07 03:31:44 +0300
commit94cdeebd82111d7b7da5bd4da053eed9e0f65d72 (patch)
tree9f0e16b425b08d67da8cded4c36428d6fe90c61f /tools
parent4a2771895ca63a055df815be5e307cce8e85308c (diff)
downloadlinux-94cdeebd82111d7b7da5bd4da053eed9e0f65d72.tar.xz
KVM: x86/cpuid: Add AMD CPUID ExtPerfMonAndDbg leaf 0x80000022
CPUID leaf 0x80000022 i.e. ExtPerfMonAndDbg advertises some new performance monitoring features for AMD processors. Bit 0 of EAX indicates support for Performance Monitoring Version 2 (PerfMonV2) features. If found to be set during PMU initialization, the EBX bits of the same CPUID function can be used to determine the number of available PMCs for different PMU types. Expose the relevant bits via KVM_GET_SUPPORTED_CPUID so that guests can make use of the PerfMonV2 features. Co-developed-by: Sandipan Das <sandipan.das@amd.com> Signed-off-by: Sandipan Das <sandipan.das@amd.com> Signed-off-by: Like Xu <likexu@tencent.com> Link: https://lore.kernel.org/r/20230603011058.1038821-13-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions