]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Factor out pKVM host exception injection logic
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:18 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:08 +0000 (16:58 +0100)
commit90c59c4d920f3ea6e7b4dd8702b87b38c7162755
tree4aa9ca839e6aef05ee8ccf49a969dd58448d4561
parent4e6e03f9eaddb6be5ca8477dc5642e94ddece47e
KVM: arm64: Factor out pKVM host exception injection logic

inject_undef64() open-codes the logic to inject an exception into the
pKVM host. In preparation for reusing this logic to inject a data abort
on an unhandled stage-2 fault from the host, factor out the meat and
potatoes of the function into a new inject_host_exception() function
which takes the ESR as a parameter.

Cc: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260330144841.26181-18-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/hyp-main.c