arm64: Take into account ID_AA64PFR0_EL1.CSV3
authorWill Deacon <will.deacon@arm.com>
Mon, 27 Nov 2017 18:29:30 +0000 (18:29 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 8 Jan 2018 18:43:34 +0000 (18:43 +0000)
commit179a56f6f9fbda28f6ca07db1fc3dfad6bc7343c
tree1732f38cd45c84444e8102b3c312258bc61041ea
parent0617052ddde355ee663b2f048e67dd381e5ebd6a
arm64: Take into account ID_AA64PFR0_EL1.CSV3

For non-KASLR kernels where the KPTI behaviour has not been overridden
on the command line we can use ID_AA64PFR0_EL1.CSV3 to determine whether
or not we should unmap the kernel whilst running at EL0.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/sysreg.h
arch/arm64/kernel/cpufeature.c