aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMike Rapoport <[email protected]>2021-03-02 12:04:05 +0200
committerBorislav Petkov <[email protected]>2021-03-23 17:13:17 +0100
commita799c2bd29d19c565f37fa038b31a0a1d44d0e4d (patch)
tree4f83ab3aa674911e59615c5378f46b8c6c68c224 /tools/perf/scripts/python/export-to-postgresql.py
parente14cfb3bdd0f82147d09e9f46bedda6302f28ee1 (diff)
x86/setup: Consolidate early memory reservations
The early reservations of memory areas used by the firmware, bootloader, kernel text and data are spread over setup_arch(). Moreover, some of them happen *after* memblock allocations, e.g trim_platform_memory_ranges() and trim_low_memory_range() are called after reserve_real_mode() that allocates memory. There was no corruption of these memory regions because memblock always allocates memory either from the end of memory (in top-down mode) or above the kernel image (in bottom-up mode). However, the bottom up mode is going to be updated to span the entire memory [1] to avoid limitations caused by KASLR. Consolidate early memory reservations in a dedicated function to improve robustness against future changes. Having the early reservations in one place also makes it clearer what memory must be reserved before memblock allocations are allowed. Signed-off-by: Mike Rapoport <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Baoquan He <[email protected]> Acked-by: Borislav Petkov <[email protected]> Acked-by: David Hildenbrand <[email protected]> Link: [1] https://lore.kernel.org/lkml/[email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions