Skip to content

Commit b9b9d72

Browse files
jgoulywilldeacon
authored andcommitted
arm64: add Permission Overlay Extension Kconfig
Now that support for POE and Protection Keys has been implemented, add a config to allow users to actually enable it. Signed-off-by: Joey Gouly <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Acked-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 4afd006 commit b9b9d72

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

arch/arm64/Kconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,6 +2137,29 @@ config ARM64_EPAN
21372137
if the cpu does not implement the feature.
21382138
endmenu # "ARMv8.7 architectural features"
21392139

2140+
menu "ARMv8.9 architectural features"
2141+
2142+
config ARM64_POE
2143+
prompt "Permission Overlay Extension"
2144+
def_bool y
2145+
select ARCH_USES_HIGH_VMA_FLAGS
2146+
select ARCH_HAS_PKEYS
2147+
help
2148+
The Permission Overlay Extension is used to implement Memory
2149+
Protection Keys. Memory Protection Keys provides a mechanism for
2150+
enforcing page-based protections, but without requiring modification
2151+
of the page tables when an application changes protection domains.
2152+
2153+
For details, see Documentation/core-api/protection-keys.rst
2154+
2155+
If unsure, say y.
2156+
2157+
config ARCH_PKEY_BITS
2158+
int
2159+
default 3
2160+
2161+
endmenu # "ARMv8.9 architectural features"
2162+
21402163
config ARM64_SVE
21412164
bool "ARM Scalable Vector Extension support"
21422165
default y

0 commit comments

Comments
 (0)