Re: [PATCH v3 2/4] riscv: Add support for kexec handover (KHO)
From: Pasha Tatashin
Date: Sun Nov 08 2026 - 10:26:24 EST
Nit: please change subject either to:
Add support for Kexec HandOver
or
Add support for KHO
No need to spell out right in the subject.
> The generic handover paths are already in place on RISC-V: the outgoing
> kernel publishes the handover FDT and the bootmem list in /chosen of the
> DTB built by of_kexec_alloc_and_setup_fdt(), and the incoming kernel
> picks both up while scanning that node. Only the architecture symbol is
> missing.
>
> Set it to 64BIT && MMU: ARCH_SUPPORTS_KEXEC_FILE is already 64BIT only,
> and KEXEC_HANDOVER selects CMA, which depends on MMU.
>
> Signed-off-by: Chen Pei <cp0613@xxxxxxxxxxxxxxxxx>
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index e7891a2a89da..a5c56252ff44 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -1125,6 +1125,9 @@ config ARCH_SELECTS_KEXEC_FILE
> config ARCH_SUPPORTS_KEXEC_PURGATORY
> def_bool ARCH_SUPPORTS_KEXEC_FILE
>
> +config ARCH_SUPPORTS_KEXEC_HANDOVER
> + def_bool 64BIT && MMU
> +
> config ARCH_SUPPORTS_CRASH_DUMP
> def_bool y
Reviewed-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>
But pre-reqs. should be applied prior taking this series:
1. https://lore.kernel.org/all/20261023054518.3258350-1-gthelen@xxxxxxxxxx
2. https://lore.kernel.org/all/20261104-kho-bootmem-sizing-v2-0-b0d1a834780f@xxxxxxxxxx
--
Pasha