xref: /linux/kernel/liveupdate/Kconfig (revision 22626c347d250797fa76616feeb55ba9f6c0192c)
1# SPDX-License-Identifier: GPL-2.0-only
2
3menu "Live Update and Kexec HandOver"
4
5config KEXEC_HANDOVER
6	bool "kexec handover"
7	depends on ARCH_SUPPORTS_KEXEC_HANDOVER && ARCH_SUPPORTS_KEXEC_FILE
8	select KEXEC_FILE
9	select LIBFDT
10	select CMA
11	help
12	  Allow kexec to hand over state across kernels by generating and
13	  passing additional metadata to the target kernel. This is useful
14	  to keep data or state alive across the kexec. For this to work,
15	  both source and target kernels need to have this option enabled.
16
17config KEXEC_HANDOVER_DEBUG
18	bool "Enable Kexec Handover debug checks"
19	depends on KEXEC_HANDOVER
20	help
21	  This option enables extra sanity checks for the Kexec Handover
22	  subsystem. Since, KHO performance is crucial in live update
23	  scenarios and the extra code might be adding overhead it is
24	  only optionally enabled.
25
26config KEXEC_HANDOVER_DEBUGFS
27	bool "kexec handover debugfs interface"
28	default KEXEC_HANDOVER
29	depends on KEXEC_HANDOVER
30	select DEBUG_FS
31	help
32	  Allow to control kexec handover device tree via debugfs
33	  interface, i.e. finalize the state or aborting the finalization.
34	  Also, enables inspecting the KHO fdt trees with the debugfs binary
35	  blobs.
36
37config KEXEC_HANDOVER_ENABLE_DEFAULT
38	bool "Enable kexec handover by default"
39	depends on KEXEC_HANDOVER
40	help
41	  Enable Kexec Handover by default. This avoids the need to
42	  explicitly pass 'kho=on' on the kernel command line.
43
44	  This is useful for systems where KHO is a prerequisite for other
45	  features, such as Live Update, ensuring the mechanism is always
46	  active.
47
48	  The default behavior can still be overridden at boot time by
49	  passing 'kho=off'.
50
51config LIVEUPDATE
52	bool "Live Update Orchestrator"
53	depends on KEXEC_HANDOVER
54	help
55	  Enable the Live Update Orchestrator. Live Update is a mechanism,
56	  typically based on kexec, that allows the kernel to be updated
57	  while keeping selected devices operational across the transition.
58	  These devices are intended to be reclaimed by the new kernel and
59	  re-attached to their original workload without requiring a device
60	  reset.
61
62	  Ability to handover a device from current to the next kernel depends
63	  on specific support within device drivers and related kernel
64	  subsystems.
65
66	  This feature primarily targets virtual machine hosts to quickly update
67	  the kernel hypervisor with minimal disruption to the running virtual
68	  machines.
69
70	  If unsure, say N.
71
72config LIVEUPDATE_MEMFD
73	bool "Live update support for memfd"
74	depends on LIVEUPDATE
75	depends on MEMFD_CREATE
76	depends on SHMEM
77	default LIVEUPDATE
78	help
79	  Enable live update support for memfd regions. This allows preserving
80	  memfd-backed memory across kernel live updates.
81
82	  This can be used to back VM memory with memfds, allowing the guest
83	  memory to persist, or for other user workloads needing to preserve
84	  pages.
85
86	  If unsure, say N.
87
88endmenu
89