Alexander Graf
65a5d72785
x86/kexec: add support for passing kexec handover (KHO) data
...
kexec handover (KHO) creates a metadata that the kernels pass between each
other during kexec. This metadata is stored in memory and kexec image
contains a (physical) pointer to that memory.
In addition, KHO keeps "scratch regions" available for kexec: physically
contiguous memory regions that are guaranteed to not have any memory that
KHO would preserve. The new kernel bootstraps itself using the scratch
regions and sets all handed over memory as in use. When subsystems that
support KHO initialize, they introspect the KHO metadata, restore
preserved memory regions, and retrieve their state stored in the preserved
memory.
Enlighten x86 kexec-file and boot path about the KHO metadata and make
sure it gets passed along to the next kernel.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexander Graf <[email protected] >
Co-developed-by: Mike Rapoport (Microsoft) <[email protected] >
Signed-off-by: Mike Rapoport (Microsoft) <[email protected] >
Co-developed-by: Changyuan Lyu <[email protected] >
Signed-off-by: Changyuan Lyu <[email protected] >
Acked-by: Dave Hansen <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Anthony Yznaga <[email protected] >
Cc: Arnd Bergmann <[email protected] >
Cc: Ashish Kalra <[email protected] >
Cc: Ben Herrenschmidt <[email protected] >
Cc: Borislav Betkov <[email protected] >
Cc: Catalin Marinas <[email protected] >
Cc: David Woodhouse <[email protected] >
Cc: Eric Biederman <[email protected] >
Cc: "H. Peter Anvin" <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: James Gowans <[email protected] >
Cc: Jason Gunthorpe <[email protected] >
Cc: Jonathan Corbet <[email protected] >
Cc: Krzysztof Kozlowski <[email protected] >
Cc: Marc Rutland <[email protected] >
Cc: Paolo Bonzini <[email protected] >
Cc: Pasha Tatashin <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Pratyush Yadav <[email protected] >
Cc: Rob Herring <[email protected] >
Cc: Saravana Kannan <[email protected] >
Cc: Stanislav Kinsburskii <[email protected] >
Cc: Steven Rostedt <[email protected] >
Cc: Thomas Gleinxer <[email protected] >
Cc: Thomas Lendacky <[email protected] >
Cc: Will Deacon <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
2025-05-12 23:50:41 -07:00
Thomas Zimmermann
efd7def004
x86/setup: Move UAPI setup structures into setup_data.h
...
The type definition of struct pci_setup_rom in <asm/pci.h> requires
struct setup_data from <asm/bootparam.h>. Many drivers include
<linux/pci.h>, but do not use boot parameters. Changes to bootparam.h or
its included header files could easily trigger a large, unnecessary
rebuild of the kernel.
Moving struct setup_data and related code into its own header file
avoids including <asm/bootparam.h> in <asm/pci.h>. Instead include the
new header <asm/screen_data.h> and remove the include statement for
x86_init.h, which is unnecessary but pulls in bootparams.h.
Suggested-by: Ard Biesheuvel <[email protected] >
Signed-off-by: Thomas Zimmermann <[email protected] >
Signed-off-by: Borislav Petkov (AMD) <[email protected] >
Reviewed-by: Ard Biesheuvel <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2024-01-30 15:17:06 +01:00