]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86/pmu: Implement AMD mediated PMU requirements
authorSean Christopherson <seanjc@google.com>
Sat, 6 Dec 2025 00:16:54 +0000 (16:16 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 8 Jan 2026 19:52:05 +0000 (11:52 -0800)
commit9ba0bb4ae76a8ee037257499165a4370306c0eac
tree6b443be688a61aace1c1f5fed1f3110f709b1bba
parentbfee4f07d88038f7e662652718e21c60b62ef3a1
KVM: x86/pmu: Implement AMD mediated PMU requirements

Require host PMU version 2+ for AMD mediated PMU support, as
PERF_GLOBAL_CTRL and friends are hard requirements for the mediated PMU.

Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Co-developed-by: Mingwei Zhang <mizhang@google.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
[sean: extract to separate patch, write changelog]
Reviewed-by: Sandipan Das <sandipan.das@amd.com>
Tested-by: Xudong Hao <xudong.hao@intel.com>
Tested-by: Manali Shukla <manali.shukla@amd.com>
Link: https://patch.msgid.link/20251206001720.468579-19-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/pmu.c