]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: Enable IMP DEF PMUv3 traps on Apple M*
authorOliver Upton <oliver.upton@linux.dev>
Wed, 5 Mar 2025 20:30:40 +0000 (12:30 -0800)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 11 Mar 2025 19:54:30 +0000 (12:54 -0700)
commite1231aacb065b2594d6f4833896aedc142fbd1d6
treeeec5c562d7f212f51c510b56202bbe921cb43227
parent1b92e65f5006da55c8779b86f052855a49ecdd97
arm64: Enable IMP DEF PMUv3 traps on Apple M*

Apple M1 and M2 CPUs support IMPDEF traps of the PMUv3 sysregs, allowing
a hypervisor to virtualize an architectural PMU for a VM. Flip the
appropriate bit in HACR_EL2 on supporting hardware.

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