diff options
| author | Dave Young <[email protected]> | 2025-01-28 13:32:31 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-02-22 11:44:45 +0000 |
| commit | a2498e5c453b3d8d054d77751487cd593332f8c2 (patch) | |
| tree | 6bad026f4c097ebd1e17db42786869db9bb4ce7f /drivers/pci/controller/pci-host-common.c | |
| parent | x86/boot: Change some static bootflag functions to bool (diff) | |
| download | kernel-a2498e5c453b3d8d054d77751487cd593332f8c2.tar.gz kernel-a2498e5c453b3d8d054d77751487cd593332f8c2.zip | |
x86/kexec: Export e820_table_kexec[] to sysfs
Previously the e820_table_kexec[] was exported to sysfs since kexec-tools uses
the memmap entries to prepare the e820 table for the new kernel.
The following commit, ~8 years ago, introduced e820_table_firmware[] and changed
the behavior to export the firmware table instead:
12df216c61c8 ("x86/boot/e820: Introduce the bootloader provided e820_table_firmware[] table")
Originally the kexec_file_load and kexec_load syscalls both used e820_table_kexec[].
Since the sysfs exported entries are from e820_table_firmware[] people
now need to tune both tables for kexec.
Restore the old behavior so the kexec_load and kexec_file_load syscalls work with
only one table update. The e820_table_firmware[] is used by hibernation kernel
code and it works without the sysfs exporting. Also remove the SEV
e820_table_firmware[] updating code.
Also update the code comments here and drop the comments about setup_data
reservation since it is not needed any more after this change was made
a year ago:
fc7f27cda843 ("x86/kexec: Do not update E820 kexec table for setup_data")
[ mingo: Tidy up the changelog and comments. ]
Signed-off-by: Dave Young <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Ashish Kalra <[email protected]>
Cc: Sean Christopherson <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Eric Biederman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions
