Commit ebfbd12b authored by Marc Zyngier's avatar Marc Zyngier Committed by huangfangrun
Browse files

KVM: arm64: Add minimal handling for the ARMv8.7 PMU

mainline inclusion
from mainline-v5.17-rc1
commit 00e228b3
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6OMSU
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=00e228b31596c6bf5f08b5ef76f80cb26e620f02



----------------------------------------------------------------------

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: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
Tested-by: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211126115533.217903-1-maz@kernel.org


Signed-off-by: default avatarhuangfangrun <huangfangrun1@h-partners.com>
parent 2c8b3d39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment