]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Use KVM_REQ_RELOAD_PMU to handle PMCR_EL0.E change
authorOliver Upton <oliver.upton@linux.dev>
Tue, 17 Dec 2024 17:55:32 +0000 (09:55 -0800)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 18 Dec 2024 21:22:25 +0000 (13:22 -0800)
commitadf8623b3f51e9c7eb18a7bb0381093f31053e38
tree1cbdf8523f14701dfbae64e6e09410df7f43c6db
parente22c369520d0a2a191820cc308f81a860b1b8d47
KVM: arm64: Use KVM_REQ_RELOAD_PMU to handle PMCR_EL0.E change

Nested virt introduces yet another set of 'global' knobs for controlling
event counters that are reserved for EL2 (i.e. >= HPMN). Get ready to
share some plumbing with the NV controls by offloading counter
reprogramming to KVM_REQ_RELOAD_PMU.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241217175532.3658134-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/pmu-emul.c