]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf/x86/intel: Support PERF_PMU_CAP_MEDIATED_VPMU
authorKan Liang <kan.liang@linux.intel.com>
Sat, 6 Dec 2025 00:16:48 +0000 (16:16 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 17 Dec 2025 12:31:06 +0000 (13:31 +0100)
commit4280d79587a3fd4bf9415705536fe385467c5f44
treed9e71d7ccf128a7af66d92df416ceaeea2ab75bd
parentc8824a95d9673763a0a9d642f8c79b2162296923
perf/x86/intel: Support PERF_PMU_CAP_MEDIATED_VPMU

Apply the PERF_PMU_CAP_MEDIATED_VPMU for Intel core PMU. It only indicates
that the perf side of core PMU is ready to support the mediated vPMU.
Besides the capability, the hypervisor, a.k.a. KVM, still needs to check
the PMU version and other PMU features/capabilities to decide whether to
enable support mediated vPMUs.

[sean: massage changelog]
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Mingwei Zhang <mizhang@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Xudong Hao <xudong.hao@intel.com>
Link: https://patch.msgid.link/20251206001720.468579-13-seanjc@google.com
arch/x86/events/intel/core.c