[PATCH v2 11/12] KVM: arm64: Refine PMU defines for number of counters
Marc Zyngier
maz at kernel.org
Thu Jun 27 03:54:18 PDT 2024
On Wed, 26 Jun 2024 23:32:35 +0100,
"Rob Herring (Arm)" <robh at kernel.org> wrote:
>
> There are 2 defines for the number of PMU counters:
> ARMV8_PMU_MAX_COUNTERS and ARMPMU_MAX_HWEVENTS. Both are the same
> currently, but Armv9.4/8.9 increases the number of possible counters
> from 32 to 33. With this change, the maximum number of counters will
> differ for KVM's PMU emulation which is PMUv3.4. Give KVM PMU emulation
> its own define to decouple it from the rest of the kernel's number PMU
> counters.
>
> The VHE PMU code needs to match the PMU driver, so switch it to use
> ARMPMU_MAX_HWEVENTS instead.
>
> Acked-by: Mark Rutland <mark.rutland at arm.com>
> Signed-off-by: Rob Herring (Arm) <robh at kernel.org>
Reviewed-by: Marc Zyngier <maz at kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list