]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Sanitise ICH_HCR_EL2 accesses
authorMarc Zyngier <maz@kernel.org>
Tue, 25 Feb 2025 17:29:21 +0000 (17:29 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 3 Mar 2025 22:55:10 +0000 (14:55 -0800)
commit21d29cd814d794f8ed9dc466d7481b8629ca5e73
treee5a940e6b3c7c161a28bba15d07ee8cc06a69dc0
parent96c2f03311de1a9363a7b4cee28776ac9cec8109
KVM: arm64: nv: Sanitise ICH_HCR_EL2 accesses

As ICH_HCR_EL2 is a VNCR accessor when runnintg NV, add some
sanitising to what gets written. Crucially, mark TDIR as RES0
if the HW doesn't support it (unlikely, but hey...), as well
as anything GICv4 related, since we only expose a GICv3 to the
uest.

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