]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: nv: Don't advance PC when pending an SVE exception
authorMarc Zyngier <maz@kernel.org>
Fri, 26 Sep 2025 19:41:08 +0000 (12:41 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:17:03 +0000 (14:17 +0100)
commit9a1950f97741a23fc68a7b2cfd487e059d389be5
tree5809f771bfa85d6e88c25ca70d89246a0c95458e
parented25dcfbc4327570b28f0328a8e17d121434c0ea
KVM: arm64: nv: Don't advance PC when pending an SVE exception

Jan reports that running a nested guest on Neoverse-V2 leads to a WARN
in the host due to simultaneously pending an exception and PC increment
after an access to ZCR_EL2.

Returning true from a sysreg accessor is an indication that the sysreg
instruction has been retired. Of course this isn't the case when we've
pended a synchronous SVE exception for the guest. Fix the return value
and let the exception propagate to the guest as usual.

Reported-by: Jan Kotas <jank@cadence.com>
Closes: https://lore.kernel.org/kvmarm/865xd61tt5.wl-maz@kernel.org/
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c