KVM: arm64: Upgrade PMU support to ARMv8.4
authorMarc Zyngier <maz@kernel.org>
Sun, 16 Feb 2020 18:17:22 +0000 (18:17 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 3 Feb 2021 11:00:22 +0000 (11:00 +0000)
commit46081078feb451b5488c225c1e600ada24285c06
tree51fa45fca0a3c80fddea9eccfaa64c6514015b5c
parent94893fc9ad8cdb05fdb64e00128997bc530e2ca9
KVM: arm64: Upgrade PMU support to ARMv8.4

Upgrading the PMU code from ARMv8.1 to ARMv8.4 turns out to be
pretty easy. All that is required is support for PMMIR_EL1, which
is read-only, and for which returning 0 is a valid option as long
as we don't advertise STALL_SLOT as an implemented event.

Let's just do that and adjust what we return to the guest.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/sysreg.h
arch/arm64/kvm/pmu-emul.c
arch/arm64/kvm/sys_regs.c