Home
last modified time | relevance | path

Searched full:kexec (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/linux/Documentation/admin-guide/mm/
H A Dkho.rst4 Kexec Handover Usage
7 Kexec HandOver (KHO) is a mechanism that allows Linux to preserve memory
8 regions, which could contain serialized system states, across kexec.
20 kexec.
28 Perform a KHO kexec
31 First, before you perform a KHO kexec, you need to move the system into
41 Next, load the target payload and kexec into it. It is important that you
42 use the ``-s`` parameter to use the in-kernel kexec file loader, as user
43 space kexec tooling currently has no support for KHO with the user space
46 # kexec -l /path/to/bzImage --initrd /path/to/initrd -s
[all …]
/linux/kernel/
H A DKconfig.kexec3 menu "Kexec and crash features"
20 config KEXEC config
21 bool "Enable kexec system call"
25 kexec is a system call that implements the ability to shutdown your
39 bool "Enable kexec file based system call"
44 This is new version of kexec system call. This system call is
47 accepted by kexec system call.
90 bool "kexec jump"
92 depends on KEXEC && HIBERNATION
95 code in physical address mode via KEXEC
[all …]
/linux/Documentation/core-api/kho/
H A Dconcepts.rst5 Kexec Handover Concepts
8 Kexec HandOver (KHO) is a mechanism that allows Linux to preserve memory
9 regions, which could contain serialized system states, across kexec.
16 Every KHO kexec carries a KHO specific flattened device tree (FDT) blob
19 across kexec. After KHO, subsystems can retrieve and restore preserved
33 To boot into kexec, we need to have a physically contiguous memory range that
34 contains no handed over memory. Kexec then places the target kernel and initrd
40 after kexec these regions will be used by early memory allocations, there is a
52 After KHO kexec, we ignore the ``kho_scratch`` kernel command line option and
55 for boot memory allocations and as target memory for kexec blobs, some parts
[all …]
/linux/tools/testing/selftests/kexec/
H A Dtest_kexec_file_load.sh18 # Some of the IMA builtin policies may require the kexec kernel image to
36 # kexec kernel image be signed. Policy rules are walked
67 log_info "kexec kernel image PE signed"
69 log_info "kexec kernel image not PE signed"
89 log_info "kexec kernel image IMA signed"
91 log_info "kexec kernel image not IMA signed"
106 log_info "kexec kernel image modsig signed"
108 log_info "kexec kernel image not modsig signed"
119 line=$(kexec --load --kexec-file-syscall $KERNEL_IMAGE 2>&1)
122 kexec --unload --kexec-file-syscall
[all …]
H A Dtest_kexec_load.sh10 # kexec requires root privileges
32 kexec --load $KERNEL_IMAGE > /dev/null 2>&1
34 kexec --unload
/linux/Documentation/admin-guide/kdump/
H A Dkdump.rst2 Documentation for Kdump - The kexec-based Crash Dumping Solution
11 Kdump uses kexec to quickly boot to a dump-capture kernel whenever a
20 Kdump and kexec are currently supported on the x86, x86_64, ppc64,
26 The kexec -p command loads the dump-capture kernel into this reserved
37 kexec backs up the first 64KB memory.
63 Install kexec-tools
68 2) Download the kexec-tools user-space package from the following URL:
70 http://kernel.org/pub/linux/utils/kernel/kexec/kexec-tools.tar.gz
74 The latest kexec-tools git tree is available at:
76 - git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git
[all …]
/linux/arch/arm64/kernel/
H A Dmachine_kexec.c3 * kexec for arm64
12 #include <linux/kexec.h>
36 kexec_dprintk(" kexec kimage info:\n"); in _kexec_image_info()
49 * machine_kexec_prepare - Prepare for a kexec reboot.
51 * Called from the core kexec code when a kernel image is loaded.
52 * Forbid loading a kexec kernel if we have no way of hotplugging cpus or cpus
58 pr_err("Can't kexec: CPUs are stuck in the kernel.\n"); in machine_kexec_prepare()
89 /* Allocates pages for kexec page table */
161 * machine_kexec - Do the kexec reboot.
163 * Called from the core kexec code for a sys_reboot with LINUX_REBOOT_CMD_KEXEC.
[all …]
H A Drelocate_kernel.S3 * kexec for arm64
11 #include <linux/kexec.h>
15 #include <asm/kexec.h>
36 * machine_kexec() routine will copy arm64_relocate_new_kernel to the kexec
/linux/include/uapi/linux/
H A Dkexec.h5 /* kexec system call - It loads the new kernel to boot into.
6 * kexec does not sync, or unmount filesystems so if you need
12 /* kexec flags for different usage scenarios */
20 * Kexec file load interface flags.
21 * KEXEC_FILE_UNLOAD : Unload already loaded kexec/kdump image.
/linux/arch/riscv/kernel/
H A Dmachine_kexec.c7 #include <linux/kexec.h>
8 #include <asm/kexec.h> /* For riscv_kexec_* symbol defines */
22 * machine_kexec_prepare - Initialize kexec
98 * machine_shutdown - Prepare for a kexec reboot
102 * harts and possibly devices etc) for a kexec reboot.
118 * machine_crash_shutdown - Prepare to kexec after a kernel crash
144 * the kexec process where the pre-loaded kimage is ready to be
/linux/drivers/of/
H A Dkexec.c8 * And arch/powerpc/kexec/file_load.c:
14 #include <linux/kexec.h>
135 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len); in ima_get_kexec_buffer()
143 /* Do some sanity on the returned size for the ima-kexec buffer */ in ima_get_kexec_buffer()
175 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL); in ima_free_kexec_buffer()
211 prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len); in remove_ima_buffer()
216 fdt_delprop(fdt, chosen_node, "linux,ima-kexec-buffer"); in remove_ima_buffer()
228 * @image: kexec image being loaded.
243 "linux,ima-kexec-buffer", in setup_ima_buffer()
307 * @image: kexec image being loaded.
[all …]
/linux/include/linux/
H A Dkexec.h23 #include <uapi/linux/kexec.h>
38 #include <asm/kexec.h>
173 * @image: kexec image in which memory to search.
365 /* If set, we are using file mode kexec syscall */
368 /* If set, it is safe to update kexec segments that are
380 /* Additional fields for file based kexec syscall */
407 /* Virtual address of IMA measurement buffer for kexec syscall */
432 /* kexec interface functions */
453 /* List of defined/legal kexec flags */
461 /* List of defined/legal kexec file flags */
[all …]
/linux/arch/mips/kernel/
H A Dmachine_kexec.c3 * machine_kexec.c for kexec
7 #include <linux/kexec.h>
38 pr_debug("kexec kimage info:\n"); in kexec_image_info()
62 * tree will be created by kexec tool. It holds modified command in uhi_machine_kexec_prepare()
188 * Instead of cpu_relax() or wait, this is needed for kexec in kexec_reboot()
190 * kernel, but kexec may do. in kexec_reboot()
232 * The generic kexec code builds a page list with physical in machine_kexec()
/linux/arch/powerpc/kexec/
H A Dfile_load.c12 * Based on kexec-tools' kexec-elf-ppc64.c, fs2dt.c.
18 #include <linux/kexec.h>
28 * @image: Kexec image
63 * @image: kexec image.
H A Dcore_64.c11 #include <linux/kexec.h>
79 /* Called during kexec sequence with MMU off */
113 /* Called during kexec sequence with MMU off */
195 printk(KERN_INFO "kexec: waiting for cpu %d " in kexec_prepare_cpus_wait()
221 printk(KERN_INFO "kexec: Waking offline cpu %d.\n", in wake_offline_cpus()
263 * do this if kexec in setup.c ? in kexec_prepare_cpus()
278 * kexec thread structure and stack.
283 * overwritten when we copy the kexec image. We piggyback on the
311 * If the kexec boot is the normal one, need to shutdown other cpus in default_machine_kexec()
331 printk("kexec: Starting switchover sequence.\n"); in default_machine_kexec()
[all …]
/linux/arch/powerpc/purgatory/
H A DMakefile6 # overlapping text sections, which is not supported by kexec. Remove profile
15 $(obj)/kexec-purgatory.o: $(obj)/purgatory.ro
17 obj-y += kexec-purgatory.o
/linux/arch/x86/purgatory/
H A DMakefile17 # overlapping text sections, which is not supported by kexec. Remove profile
22 # by kexec. Remove -flto=* flags.
81 $(obj)/kexec-purgatory.o: $(obj)/purgatory.ro $(obj)/purgatory.chk
83 obj-y += kexec-purgatory.o
/linux/arch/x86/kernel/
H A Dmachine_kexec_64.c7 #define pr_fmt(fmt) "kexec: " fmt
10 #include <linux/kexec.h>
27 #include <asm/kexec-bzimage64.h>
290 * Prepare EFI systab and ACPI tables for kexec kernel since they are in init_pgtable()
413 * get timer interrupts in second kernel. kexec/kdump in machine_kexec()
415 * in one form or other. kexec jump path also need one. in machine_kexec()
457 /* arch-dependent functionality related to kexec file-based syscall */
468 * TODO: Some of the code belongs to generic code. Move that in kexec.c.
501 * ->sh_addr. kexec takes care of moving it in arch_kexec_apply_relocations_add()
668 * so the SME kexec kernel also needs to be un-encrypted in order to
[all …]
H A Dcrash.c3 * Architecture specific (i386/x86_64) functions for kexec based crash dumps.
14 #define pr_fmt(fmt) "kexec: " fmt
20 #include <linux/kexec.h>
103 * The minimum amount of code to allow a kexec'd kernel in native_machine_crash_shutdown()
133 * Non-crash kexec calls enc_kexec_begin() while scheduling is still in native_machine_crash_shutdown()
467 * functionality was expanded to accommodate multiple kexec in arch_crash_hotplug_support()
469 * KEXEC_CRASH_HOTPLUG_SUPPORT kexec flag bit. Consequently, in arch_crash_hotplug_support()
470 * when the kexec tool sends either of these flags, it indicates in arch_crash_hotplug_support()
471 * that the required kexec segment (elfcorehdr) is excluded from in arch_crash_hotplug_support()
/linux/arch/x86/boot/compressed/
H A Defi.c83 * not be accessible for the kexec'd kernel. To address this, kexec provides
108 * cases, so maintain existing behavior by indicating non-kexec in get_kexec_setup_data()
112 debug_putstr("kexec EFI environment missing valid configuration table.\n"); in get_kexec_setup_data()
151 /* kexec provides an alternative EFI conf table, check for it. */ in efi_get_conf_table()
/linux/arch/loongarch/kernel/
H A Dmachine_kexec.c3 * machine_kexec.c for kexec
9 #include <linux/kexec.h>
46 pr_debug("kexec kimage info:\n"); in kexec_image_info()
65 char *bootloader = "kexec"; in machine_kexec_prepare()
87 /* kexec/kdump need a safe page to save reboot_code_buffer */ in machine_kexec_prepare()
272 * The generic kexec code builds a page list with physical in machine_kexec()
/linux/Documentation/ABI/testing/
H A Dsysfs-firmware-efi-runtime-map9 mode once without rebooting. The kexec kernel must maintain
12 can reassemble them and pass them into the kexec kernel.
36 Users: Kexec
H A Dsysfs-firmware-efi6 Users: Kexec
13 Users: Kexec
20 Users: Kexec
/linux/arch/parisc/kernel/
H A Drelocate_kernel.S3 #include <linux/kexec.h>
15 ENTRY(kexec\()_\name)
22 ENTRY(kexec\()_\name\()_offset)
23 .word kexec\()_\name - relocate_new_kernel
/linux/arch/arm/kernel/
H A Dmachine_kexec.c7 #include <linux/kexec.h>
16 #include <asm/kexec-internal.h>
45 * able to kexec reliably, so fail the prepare operation. in machine_kexec_prepare()
152 * reliably kexec anyway, so BUG_ON is appropriate. in machine_kexec()

12345678910>>...12