]> Gentwo Git Trees - linux/.git/commit
KVM: x86/pmu: Snapshot host (i.e. perf's) reported PMU capabilities
authorSean Christopherson <seanjc@google.com>
Wed, 6 Aug 2025 19:56:39 +0000 (12:56 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 18 Sep 2025 19:56:44 +0000 (12:56 -0700)
commit51f34b1e650fc5843530266cea4341750bd1ae37
tree726fb04360e99f7ad8bad81325d5327e49da39f8
parente3d1f2826da68c763cba1f29dba5cc81d3fdaaee
KVM: x86/pmu: Snapshot host (i.e. perf's) reported PMU capabilities

Take a snapshot of the unadulterated PMU capabilities provided by perf so
that KVM can compare guest vPMU capabilities against hardware capabilities
when determining whether or not to intercept PMU MSRs (and RDPMC).

Reviewed-by: Sandipan Das <sandipan.das@amd.com>
Tested-by: Xudong Hao <xudong.hao@intel.com>
Link: https://lore.kernel.org/r/20250806195706.1650976-18-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/pmu.c