KVM: arm64: Handle AArch32 SPSR_{irq,abt,und,fiq} as RAZ/WI
authorMarc Zyngier <maz@kernel.org>
Mon, 23 Oct 2023 09:54:44 +0000 (10:54 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 25 Oct 2023 00:25:06 +0000 (00:25 +0000)
commit3f7915ccc90261c201664b5fdce139db09480a36
tree4c1eb99403d291424a82f92a22a4cc0d5f5eda3e
parentc7d11a61c7f7de75e4e269485644ea8c5a4e0bf6
KVM: arm64: Handle AArch32 SPSR_{irq,abt,und,fiq} as RAZ/WI

When trapping accesses from a NV guest that tries to access
SPSR_{irq,abt,und,fiq}, make sure we handle them as RAZ/WI,
as if AArch32 wasn't implemented.

This involves a bit of repainting to make the visibility
handler more generic.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231023095444.1587322-6-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/sysreg.h
arch/arm64/kvm/sys_regs.c