]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: pkvm: Use direct function pointers for cpu_{on,resume}
authorMarc Zyngier <maz@kernel.org>
Sat, 21 Mar 2026 21:24:18 +0000 (21:24 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 23 Mar 2026 11:03:53 +0000 (11:03 +0000)
commit59c6e12d40a5b05038b68bcdb4690456fee68e8a
treed956ad7df83674fef362eb200a5d2d53155c98bd
parentba64e273eac3d7ec4a2b621b3620c4d3b0399858
KVM: arm64: pkvm: Use direct function pointers for cpu_{on,resume}

Instead of using a boolean to decide whether a CPU is booting or
resuming, just pass an actual function pointer around.

This makes the code a bit more straightforward to understand.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260321212419.2803972-5-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_asm.h
arch/arm64/kvm/hyp/nvhe/hyp-init.S
arch/arm64/kvm/hyp/nvhe/psci-relay.c