arm64: mm: Only map KPTI trampoline if it is going to be used
authorArd Biesheuvel <ardb@kernel.org>
Mon, 27 Nov 2023 12:00:52 +0000 (13:00 +0100)
committerWill Deacon <will@kernel.org>
Mon, 11 Dec 2023 11:40:38 +0000 (11:40 +0000)
commit8885c7398fe56c49f14be6ce0ac202385f3cd818
tree20cd2e9f4cf48acca8c0c6c40c69377e31275d98
parent103423ad7e56d6c756738823c332c414b07899e6
arm64: mm: Only map KPTI trampoline if it is going to be used

Avoid creating the fixmap entries for the KPTI trampoline if KPTI is not
in use.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20231127120049.2258650-7-ardb@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/mmu.c