]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: pkvm: Move error handling to the end of kvm_hyp_cpu_entry
authorMarc Zyngier <maz@kernel.org>
Sat, 21 Mar 2026 21:24:15 +0000 (21:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 23 Mar 2026 11:03:53 +0000 (11:03 +0000)
commit4ebfa3230b40728638a6acceb709f900f920f921
treef4b951802b82e62fdaadcc98df6a8a778d67e5c3
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
KVM: arm64: pkvm: Move error handling to the end of kvm_hyp_cpu_entry

We currently handle CPUs having booted at EL1 in the middle of
the kvm_hyp_cpu_entry function. Not only this adversely affects
readability, but this is also at a bizarre spot should more
error handling be added (which we're about to do).

Move the WFE/WFI loop to the end of the function and fix a comment.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260321212419.2803972-2-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/hyp-init.S