KVM: arm64: Advertise PMUv3 if IMPDEF traps are present
authorOliver Upton <oliver.upton@linux.dev>
Wed, 5 Mar 2025 20:26:37 +0000 (12:26 -0800)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 11 Mar 2025 19:54:29 +0000 (12:54 -0700)
commitbed9b8ec8c71135c59004d12658d8affe232f27e
tree92e307b6ff000d0cd52ff48675f0c591750c4712
parent2c433f70dccc1af6922931404bfe23d215bdfff0
KVM: arm64: Advertise PMUv3 if IMPDEF traps are present

Advertise a baseline PMUv3 implementation when running on hardware with
IMPDEF traps of the PMUv3 sysregs.

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