diff options
author | Ard Biesheuvel <[email protected]> | 2019-12-06 16:55:37 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-12-08 12:42:18 +0100 |
commit | ab0eb16205b43ece4c78e2259e681ff3d645ea66 (patch) | |
tree | c93e31432021893a8266d24a56c48d22a2dfc510 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 63de37476ebd1e9bab6a9e17186dc5aa1da9ea99 (diff) |
efi/memreserve: Register reservations as 'reserved' in /proc/iomem
Memory regions that are reserved using efi_mem_reserve_persistent()
are recorded in a special EFI config table which survives kexec,
allowing the incoming kernel to honour them as well. However,
such reservations are not visible in /proc/iomem, and so the kexec
tools that load the incoming kernel and its initrd into memory may
overwrite these reserved regions before the incoming kernel has a
chance to reserve them from further use.
Address this problem by adding these reservations to /proc/iomem as
they are created. Note that reservations that are inherited from a
previous kernel are memblock_reserve()'d early on, so they are already
visible in /proc/iomem.
Tested-by: Masayoshi Mizuma <[email protected]>
Tested-by: Bhupesh Sharma <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Bhupesh Sharma <[email protected]>
Cc: <[email protected]> # v5.4+
Cc: Andy Shevchenko <[email protected]>
Cc: Arvind Sankar <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions