]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Factor out helper for selecting exception target EL
authorOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 17:25:20 +0000 (10:25 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 8 Jul 2025 18:36:35 +0000 (11:36 -0700)
commit720ef4611c46724a42aea0773248735e4fac509f
treeb22069d2415beaedefcb9184c6bd8cdf458c19c5
parentabc693fef30c76eccd29c5db41b122675ac3d102
KVM: arm64: Factor out helper for selecting exception target EL

Pull out the exception target selection from pend_sync_exception() for
general use. Use PSR_MODE_ELxh as a shorthand for the target EL, as
SP_ELx selection is handled further along in the hyp's exception
emulation.

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