KVM: arm64: Make RVBAR_EL2 accesses UNDEF
authorMarc Zyngier <maz@kernel.org>
Mon, 14 Jul 2025 12:26:24 +0000 (13:26 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 16 Jul 2025 03:24:28 +0000 (20:24 -0700)
commit1095b32665cf1085d76fc1af283dc0bd3c986169
tree65714b9be18de44258ca62910b479ccfc2b9a255
parent86731a2a651e58953fc949573895f2fa6d456841
KVM: arm64: Make RVBAR_EL2 accesses UNDEF

We always expose a virtual CPU that has EL3 when NV is enabled,
irrespective of EL3 being actually implemented in HW.

Therefore, as per the architecture, RVBAR_EL2 must UNDEF, since
EL2 is not the highest implemented exception level. This is
consistent with RMR_EL2 also triggering an UNDEF.

Adjust the handling of RVBAR_EL2 accordingly.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250714122634.3334816-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c