arm64: head: allocate more pages for the kernel mapping
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:29:00 +0000 (13:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:32 +0000 (12:42 +0000)
commit8d47b8e5c74a1be600fd68bbbb4c2ecd8d4cc33c
tree4c19ce1a3ae382e26b83ebbff6c2e4707fbe3983
parenta669c6a4935626786e456b25e9cf2bfbba908f15
arm64: head: allocate more pages for the kernel mapping

In preparation for switching to an early kernel mapping routine that
maps each segment according to its precise boundaries, and with the
correct attributes, let's allocate some extra pages for page tables for
the 4k page size configuration. This is necessary because the start and
end of each segment may not be aligned to the block size, and so we'll
need an extra page table at each segment boundary.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-59-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/kernel-pgtable.h