KVM: selftests: Test Intel PMU architectural events on fixed counters
Extend the PMU counters test to validate architectural events using fixed counters. The core logic is largely the same, the biggest difference being that if a fixed counter exists, its associated event is available (the SDM doesn't explicitly state this to be true, but it's KVM's ABI and letting software program a fixed counter that doesn't actually count would be quite bizarre). Note, fixed counters rely on PERF_GLOBAL_CTRL. Reviewed-by:Jim Mattson <jmattson@google.com> Reviewed-by:
Dapeng Mi <dapeng1.mi@linux.intel.com> Co-developed-by:
Like Xu <likexu@tencent.com> Signed-off-by:
Like Xu <likexu@tencent.com> Signed-off-by:
Jinrong Liang <cloudliang@tencent.com> Co-developed-by:
Sean Christopherson <seanjc@google.com> Tested-by:
Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20240109230250.424295-18-seanjc@google.comSigned-off-by:
Sean Christopherson <seanjc@google.com>
Showing
Please register or sign in to comment