]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Don't retire MMIO instruction w/ pending (emulated) SError
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:28 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:36:36 +0000 (11:36 -0700)
commitbfb7a30b19861e559d64b7f2c3202d948fbf93ea
treea94fde29f9c07313cd71ffbf60eaafe259134423
parenta3c4a00dbe2013ecc35f910606bd615eaff34cc7
KVM: arm64: Don't retire MMIO instruction w/ pending (emulated) SError

KVM might have an emulated SError queued for the guest if userspace
returned an abort for MMIO. Better yet, it could actually be a
*synchronous* exception in disguise if SCTLR2_ELx.EASE is set.

Don't advance PC if KVM owes an emulated SError, just like the handling
of emulated SEA injection.

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