[PATCH v6 4/8] kho: Add kho_disable()
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Oct 29 10:47:15 PDT 2026
> From: George Guo <guodongtai at kylinos.cn>
>
> On LoongArch, KHO state is passed to the next kernel only through an EFI
> configuration table. Only the EFI stub installs this table, during a cold
> boot.
>
> A kernel entered through kexec does not run the EFI stub, so it cannot
> create the table if the previous kernel did not provide one. Without
> the table, it cannot pass KHO state to the next kernel on a subsequent
> kexec.
>
> Add kho_disable() so architecture code can turn KHO off when the EFI
> configuration table is missing.
>
> Signed-off-by: George Guo <guodongtai at kylinos.cn>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261029172956.20791-1-dongtai.guo@linux.dev?part=4
More information about the kexec
mailing list