arm64: Restrict undef hook for cpufeature registers
authorRaphael Gault <raphael.gault@arm.com>
Mon, 17 May 2021 18:02:56 +0000 (13:02 -0500)
committerWill Deacon <will@kernel.org>
Tue, 22 Jun 2021 10:57:03 +0000 (11:57 +0100)
commitcf292e93f423fdebdf751a22ea01249196806328
treeeabf1a5357f0be769180bebc31c0c5cf7ae7c1ff
parent873c3e89777c8c56f936ae7aceca1a102aac6b9e
arm64: Restrict undef hook for cpufeature registers

This commit modifies the mask of the mrs_hook declared in
arch/arm64/kernel/cpufeatures.c which emulates only feature register
access. This is necessary because this hook's mask was too large and
thus masking any mrs instruction, even if not related to the emulated
registers which made the pmu emulation inefficient.

Signed-off-by: Raphael Gault <raphael.gault@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210517180256.2881891-1-robh@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c