]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: nv: Honor SError routing effects of SCTLR2_ELx.NMEA
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:24 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:36:35 +0000 (11:36 -0700)
commit59b6d08666f0424f3e0ade08ab664fac65a09c5d
treece8738e4c7b5aa2a333c516bc23118a80332fded
parentce66109cec867c9afd2ee1ecf1aff8d73cdb2f89
KVM: arm64: nv: Honor SError routing effects of SCTLR2_ELx.NMEA

As the name might imply, when NMEA is set SErrors are non-maskable and
can be taken regardless of PSTATE.A. As is the recurring theme with
DoubleFault2, the effects on SError routing are entirely backwards to
this.

If at EL1, NMEA is *not* considered for SError routing when TMEA is set
and the exception is taken to EL2 when PSTATE.A is set.

Link: https://lore.kernel.org/r/20250708172532.1699409-20-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/inject_fault.c