]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Provide 1 event counter on IMPDEF hardware
authorOliver Upton <oliver.upton@linux.dev>
Wed, 5 Mar 2025 20:30:21 +0000 (12:30 -0800)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 11 Mar 2025 19:54:30 +0000 (12:54 -0700)
commit1b92e65f5006da55c8779b86f052855a49ecdd97
treee0532bf585648c1ca7ae1c8e213fba3a39418ab4
parent2d00cab849be5e4c1b2ba82d4fdcfa0af48c340f
KVM: arm64: Provide 1 event counter on IMPDEF hardware

PMUv3 requires that all programmable event counters are capable of
counting any event. The Apple M* PMU is quite a bit different, and
events have affinities for particular PMCs.

Expose 1 event counter on IMPDEF hardware, allowing the guest to do
something useful with its PMU while also upholding the requirements of
the architecture.

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