KVM: arm64: Correctly populate FAR_EL2 on nested SEA injection
authorMarc Zyngier <maz@kernel.org>
Wed, 13 Aug 2025 16:37:47 +0000 (17:37 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 15 Aug 2025 18:51:18 +0000 (11:51 -0700)
commitd19c541d269eddd9702b687fd4ba587c7da497a2
treed4d968afa5fcfca3fd7ae105e6364a16ed8b2bbf
parent85acc29f90e0183997dea27277057c9aec2769aa
KVM: arm64: Correctly populate FAR_EL2 on nested SEA injection

vcpu_write_sys_reg()'s signature is not totally obvious, and it
is rather easy to write something that looks correct, except that...
Oh wait...

Swap addr and FAR_EL2 to restore some sanity in the nested SEA
department.

Fixes: 9aba641b9ec2a ("KVM: arm64: nv: Respect exception routing rules for SEAs")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250813163747.2591317-1-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/emulate-nested.c