KVM: arm64: PMU: Disallow vPMU on non-uniform PMUVer
authorReiji Watanabe <reijiw@google.com>
Sat, 19 Aug 2023 04:39:44 +0000 (21:39 -0700)
committerMarc Zyngier <maz@kernel.org>
Sun, 20 Aug 2023 08:42:16 +0000 (09:42 +0100)
commitec3eb9ed6081bea8ebf603ff545dba127071b928
tree49dec435286a476d0efef34706761ad66c13ba0c
parent6eaae198076080886b9e7d57f4ae06fa782f90ef
KVM: arm64: PMU: Disallow vPMU on non-uniform PMUVer

Disallow userspace from configuring vPMU for guests on systems
where the PMUVer is not uniform across all PEs.
KVM has not been advertising PMUv3 to the guests with vPMU on
such systems anyway, and such systems would be extremely
uncommon and unlikely to even use KVM.

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