]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Add minimal handling for the ARMv8.7 PMU
authorMarc Zyngier <maz@kernel.org>
Fri, 26 Nov 2021 11:36:43 +0000 (11:36 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 Dec 2021 13:11:22 +0000 (13:11 +0000)
commit0733888a659c1cc4ec344ecdd9f1303ce665a941
tree8378343e10643acd94b838a1f7daddc28cc0f598
parentff04131966d1a79c1b3cf26997a8e7d1433f1b7d
KVM: arm64: Add minimal handling for the ARMv8.7 PMU

When running a KVM guest hosted on an ARMv8.7 machine, the host
kernel complains that it doesn't know about the architected number
of events.

Fix it by adding the PMUver code corresponding to PMUv3 for ARMv8.7.

Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Tested-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211126115533.217903-1-maz@kernel.org
arch/arm64/include/asm/sysreg.h
arch/arm64/kvm/pmu-emul.c