]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kvm powerpc/book3s-apiv2: Introduce kvm-hv specific PMU
authorVaibhav Jain <vaibhav@linux.ibm.com>
Wed, 16 Apr 2025 16:27:34 +0000 (21:57 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 16 Apr 2025 16:46:09 +0000 (22:16 +0530)
commitff45bf50ccbbd6d799a8e77e4cde890b6f9ef9f5
tree90e18081c057bfd09e60a4777b8d022fc1c8a630
parent1f35ad2b938ca8e4090250a849021fa000263427
kvm powerpc/book3s-apiv2: Introduce kvm-hv specific PMU

Introduce a new PMU named 'kvm-hv' inside a new module named 'kvm-hv-pmu'
to report Book3s kvm-hv specific performance counters. This will expose
KVM-HV specific performance attributes to user-space via kernel's PMU
infrastructure and would enableusers to monitor active kvm-hv based guests.

The patch creates necessary scaffolding to for the new PMU callbacks and
introduces the new kernel module name 'kvm-hv-pmu' which is built with
CONFIG_KVM_BOOK3S_HV_PMU. The patch doesn't introduce any perf-events yet,
which will be introduced in later patches

Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250416162740.93143-5-vaibhav@linux.ibm.com
arch/powerpc/kvm/Kconfig
arch/powerpc/perf/Makefile
arch/powerpc/perf/kvm-hv-pmu.c [new file with mode: 0644]