]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Make RAS registers UNDEF when RAS isn't advertised
authorMarc Zyngier <maz@kernel.org>
Mon, 21 Jul 2025 10:19:51 +0000 (11:19 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 21 Jul 2025 16:35:57 +0000 (09:35 -0700)
commitd9c5c2320156ba4c7ac79db2ea98f4445a18c2e7
tree2af0f051a74a83acc1d1f7cc9c350de28dc21b77
parent303084ad12767db64c84ba8fcd0450aec38c8534
KVM: arm64: Make RAS registers UNDEF when RAS isn't advertised

We currently always expose FEAT_RAS when available on the host.

As we are about to make this feature selectable from userspace,
check for it being present before emulating register accesses
as RAZ/WI, and inject an UNDEF otherwise.

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