]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Add helpers to determine if PMC counts at a given EL
authorOliver Upton <oliver.upton@linux.dev>
Fri, 25 Oct 2024 18:23:49 +0000 (18:23 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 19:00:40 +0000 (19:00 +0000)
commit9d15f8290a228ccd74a6ca8c082df350009e9e06
treea6dddc1c6c8d2924210fbb8ba011ccbdc53337f2
parent9a1c58cfefb06974a804174f127de3fedc779394
KVM: arm64: Add helpers to determine if PMC counts at a given EL

Checking the exception level filters for a PMC is a minor annoyance to
open code. Add helpers to check if an event counts at EL0 and EL1, which
will prove useful in a subsequent change.

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