Will Deacon fc0e1299da arm64: mm: Add arm64_kernel_unmapped_at_el0 helper
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>
2017-12-11 13:40:41 +00:00
..
2017-08-08 16:28:13 +01:00
2017-03-20 16:17:02 +00:00
2016-09-09 11:41:13 +01:00
2016-11-07 18:15:21 +00:00
2016-03-04 18:19:17 +00:00
2017-11-15 10:56:56 -08:00
2017-11-13 01:34:49 +01:00
2017-11-03 15:24:15 +00:00
2017-04-17 12:52:22 -04:00
2017-04-17 12:52:22 -04:00
2016-11-07 18:15:21 +00:00