KVM: arm64: Fix AArch32 PMUv3 capping
authorMarc Zyngier <maz@kernel.org>
Thu, 31 Dec 2020 11:18:03 +0000 (11:18 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 3 Feb 2021 10:59:16 +0000 (10:59 +0000)
commitcb95914685ca6514da9a1592b19255fe679557eb
tree53bca320de3e0003d64f01ca1e06968235c337bd
parentbea7e97fef888421ecc21d03c6e4f9ae1451a78d
KVM: arm64: Fix AArch32 PMUv3 capping

We shouldn't expose *any* PMU capability when no PMU has been
configured for this VM.

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