Re: [PATCH v6 4/8] kho: Add kho_disable()
From: George Guo
Date: Wed Dec 02 2026 - 21:20:16 EST
Hi Mike,
Sorry for the late reply.
On Thu, Nov 05, 2026 at 02:53:04PM +0200, Mike Rapoport wrote:
> The idea behind KHO and liveupdate is that the system uses kexec + KHO for
> reboots after the cold boot unless a new cold reboot is a must.
>
> Doing one yes, one no, breaks that assumption.
>
> I don't like a global kho_disable() API. It's ambiguous and fragile.
I see, thanks for explaining. I'd like to keep the design simple too,
so I will drop kho_disable() in v7.
The table is only missing if the cold-boot kernel did not install it.
For that case, kho_fill_kimage() on LoongArch would return -EOPNOTSUPP,
so kexec_file_load() fails at load time instead of KHO being turned off
at boot.
Thanks,
George