KVM: arm64: PMU: Only narrow counters that are not 64bit wide
authorMarc Zyngier <maz@kernel.org>
Sun, 13 Nov 2022 16:38:22 +0000 (16:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Nov 2022 15:39:51 +0000 (15:39 +0000)
commit0f1e172b54f7574ca6aa46b851b332896add955f
tree26fe5a621d4f7572f9109c3424faf278e09ff6f1
parent001d85bd6c039d3662a4f33a5d212ef3e0438b27
KVM: arm64: PMU: Only narrow counters that are not 64bit wide

The current PMU emulation sometimes narrows counters to 32bit
if the counter isn't the cycle counter. As this is going to
change with PMUv3p5 where the counters are all 64bit, fix
the couple of cases where this happens unconditionally.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Link: https://lore.kernel.org/r/20221113163832.3154370-7-maz@kernel.org
arch/arm64/kvm/pmu-emul.c