]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
KVM: arm64: Set ID_AA64DFR0_EL1.PMUVer to 0 when no PMU support
authorMarc Zyngier <maz@kernel.org>
Thu, 12 Nov 2020 18:00:30 +0000 (18:00 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 27 Nov 2020 11:40:32 +0000 (11:40 +0000)
commit04355e41a60338206d6498fe463a86131d5ca06b
tree8218d8e824bea7bb8c94adc0f0e6f833448e8a49
parent9bbfa4b565379eeb2fb8fdbcc9979549ae0e48d9
KVM: arm64: Set ID_AA64DFR0_EL1.PMUVer to 0 when no PMU support

We always expose the HW view of PMU in ID_AA64FDR0_EL1.PMUver,
even when the PMU feature is disabled, while the architecture
says that FEAT_PMUv3 not being implemented should result in this
field being zero.

Let's follow the architecture's guidance.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c