]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Rename kvm_pmu_valid_counter_mask()
authorOliver Upton <oliver.upton@linux.dev>
Fri, 25 Oct 2024 18:23:47 +0000 (18:23 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 19:00:40 +0000 (19:00 +0000)
commita3034dab74fc12d6c0a589e31af9fafc436a4a0e
tree0460a5c7c098fd0e02e0c4c86b5385c74ee9124e
parent166b77a2f42341c22fe6cda504a1afa3f672f920
KVM: arm64: Rename kvm_pmu_valid_counter_mask()

Nested PMU support requires dynamically changing the visible range of
PMU counters based on the exception level and value of MDCR_EL2.HPMN. At
the same time, the PMU emulation code needs to know the absolute number
of implemented counters, regardless of context.

Rename the existing helper to make it obvious that it returns the number
of implemented counters and not anything else.

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