]> www.infradead.org Git - users/hch/misc.git/commit
KVM: arm64: Always support SW_INCR PMU event
authorOliver Upton <oliver.upton@linux.dev>
Wed, 5 Mar 2025 20:26:31 +0000 (12:26 -0800)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 11 Mar 2025 19:52:32 +0000 (12:52 -0700)
commited335722b4571c438c008fc96bf86b9d4705a60f
tree628727fc9a0d9cfaded2cce89ba77125466543aa
parent93b01528586b693a3ab31ed7be92b2347a9416ca
KVM: arm64: Always support SW_INCR PMU event

Support for SW_INCR is unconditional, as KVM traps accesses to
PMSWINC_EL0 and emulates the intended event increment. While it is
expected that ~all PMUv3 implementations already advertise this event,
non-PMUv3 hardware may not.

Tested-by: Janne Grunau <j@jannau.net>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250305202641.428114-5-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/pmu-emul.c