xref: /linux/kernel/liveupdate/Kconfig (revision 48a1b2321d763b5edeaf20bd4576d8c4b5df772b)
1# SPDX-License-Identifier: GPL-2.0-only
2
3menu "Live Update and Kexec HandOver"
4	depends on !DEFERRED_STRUCT_PAGE_INIT
5
6config KEXEC_HANDOVER
7	bool "kexec handover"
8	depends on ARCH_SUPPORTS_KEXEC_HANDOVER && ARCH_SUPPORTS_KEXEC_FILE
9	depends on !DEFERRED_STRUCT_PAGE_INIT
10	select MEMBLOCK_KHO_SCRATCH
11	select KEXEC_FILE
12	select LIBFDT
13	select CMA
14	help
15	  Allow kexec to hand over state across kernels by generating and
16	  passing additional metadata to the target kernel. This is useful
17	  to keep data or state alive across the kexec. For this to work,
18	  both source and target kernels need to have this option enabled.
19
20config KEXEC_HANDOVER_DEBUG
21	bool "Enable Kexec Handover debug checks"
22	depends on KEXEC_HANDOVER
23	help
24	  This option enables extra sanity checks for the Kexec Handover
25	  subsystem. Since, KHO performance is crucial in live update
26	  scenarios and the extra code might be adding overhead it is
27	  only optionally enabled.
28
29config KEXEC_HANDOVER_DEBUGFS
30	bool "kexec handover debugfs interface"
31	default KEXEC_HANDOVER
32	depends on KEXEC_HANDOVER
33	select DEBUG_FS
34	help
35	  Allow to control kexec handover device tree via debugfs
36	  interface, i.e. finalize the state or aborting the finalization.
37	  Also, enables inspecting the KHO fdt trees with the debugfs binary
38	  blobs.
39
40endmenu
41