linux-stable/arch/arm64
Will Deacon 53b1395088 arm64: mm: Add arm64_kernel_unmapped_at_el0 helper
Commit fc0e1299da upstream.

In order for code such as TLB invalidation to operate efficiently when
the decision to map the kernel at EL0 is determined at runtime, this
patch introduces a helper function, arm64_kernel_unmapped_at_el0, to
determine whether or not the kernel is mapped whilst running in userspace.

Currently, this just reports the value of CONFIG_UNMAP_KERNEL_AT_EL0,
but will later be hooked up to a fake CPU capability using a static key.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Tested-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-16 20:22:47 +01:00
..
boot .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-02-13 10:19:46 +01:00
configs ARM/arm64: SoC platform updates for v4.14 2017-09-10 20:35:46 -07:00
crypto License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
include arm64: mm: Add arm64_kernel_unmapped_at_el0 helper 2018-02-16 20:22:47 +01:00
kernel arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 2018-02-16 20:22:47 +01:00
kvm arm64: Add software workaround for Falkor erratum 1041 2018-02-16 20:22:44 +01:00
lib arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 2018-02-16 20:22:47 +01:00
mm arm64: mm: Allocate ASIDs in pairs 2018-02-16 20:22:47 +01:00
net bpf, arm64: fix stack_depth tracking in combination with tail calls 2018-01-31 14:03:50 +01:00
xen arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 2018-02-16 20:22:47 +01:00
Kconfig arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN 2018-02-16 20:22:47 +01:00
Kconfig.debug arm64: relocation testing module 2017-04-04 17:03:32 +01:00
Kconfig.platforms ARM: arm64: Devicetree updates for v4.14 2017-09-10 20:54:48 -07:00
Makefile arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27 2017-12-20 10:10:29 +01:00