]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Populate ESR_ELx.EC for emulated SError injection
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 23:06:31 +0000 (16:06 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 9 Jul 2025 16:55:05 +0000 (09:55 -0700)
commitf6e2262dfa1a01b981dc394be39bd022e9ecaebd
tree29c71371c6fe1d3d5fe8d8f516610dbe70c9fc3c
parent0b593ef12afce0124612d90cd1768a64d3f27a65
KVM: arm64: Populate ESR_ELx.EC for emulated SError injection

The hardware vSError injection mechanism populates ESR_ELx.EC as part of
ESR propagation and the contents of VSESR_EL2 populate the ISS field. Of
course, this means our emulated injection needs to set up the EC
correctly for an SError too.

Fixes: ce66109cec86 ("KVM: arm64: nv: Take "masked" aborts to EL2 when HCRX_EL2.TMEA is set")
Link: https://lore.kernel.org/r/20250708230632.1954240-2-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/inject_fault.c