arm64: mm: omit redundant remap of kernel image
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:29:09 +0000 (13:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:35 +0000 (12:42 +0000)
commitba5b0333a847ac026725122e085b2fea9e1674bc
tree1f3a5259f4c8ba583406481f36b77d2db522ba52
parent567a70c181df72f3bb42ca825adb5de682713caa
arm64: mm: omit redundant remap of kernel image

Now that the early kernel mapping is created with all the right
attributes and segment boundaries, there is no longer a need to recreate
it and switch to it. This also means we no longer have to copy the kasan
shadow or some parts of the fixmap from one set of page tables to the
other.

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