arm64: mm: Add 5 level paging support to fixmap and swapper handling
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:29:20 +0000 (13:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:40 +0000 (12:42 +0000)
commit6ed8a3a094b43a27ac35e5c95a8004a1d83d1b79
tree6365e2bfc1a33c63de1e6ea1e050082523d75457
parent9684ec186f8fadde52d6b6eaf64ca508897d0c71
arm64: mm: Add 5 level paging support to fixmap and swapper handling

Add support for using 5 levels of paging in the fixmap, as well as in
the kernel page table handling code which uses fixmaps internally.
This also handles the case where a 5 level build runs on hardware that
only supports 4 levels of paging.

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