arm64: Factor out checks for KASLR in KPTI code into separate function
authorMark Brown <broonie@kernel.org>
Mon, 9 Dec 2019 18:12:15 +0000 (18:12 +0000)
committerWill Deacon <will@kernel.org>
Wed, 15 Jan 2020 14:11:17 +0000 (14:11 +0000)
commitc2d92353b28f8542c6b3150900b38c94b1d61480
tree052c44f61d24b70c1e5a8d303c14f51f8518a5db
parent3e6c69a058deaa50d33c3dac36cde80b4ce590e8
arm64: Factor out checks for KASLR in KPTI code into separate function

In preparation for integrating E0PD support with KASLR factor out the
checks for interaction between KASLR and KPTI done in boot context into
a new function kaslr_requires_kpti(), in the process clarifying the
distinction between what we do in boot context and what we do at
runtime.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/mmu.h
arch/arm64/kernel/cpufeature.c