Commit 5626f8d4 authored by Joey Gouly's avatar Joey Gouly Committed by Will Deacon

x86/mm: add ARCH_PKEY_BITS to Kconfig

The new config option specifies how many bits are in each PKEY.
Signed-off-by: default avatarJoey Gouly <joey.gouly@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: x86@kernel.org
Acked-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20240822151113.1479789-3-joey.gouly@arm.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 12930e3a
...@@ -1889,6 +1889,10 @@ config X86_INTEL_MEMORY_PROTECTION_KEYS ...@@ -1889,6 +1889,10 @@ config X86_INTEL_MEMORY_PROTECTION_KEYS
If unsure, say y. If unsure, say y.
config ARCH_PKEY_BITS
int
default 4
choice choice
prompt "TSX enable mode" prompt "TSX enable mode"
depends on CPU_SUP_INTEL depends on CPU_SUP_INTEL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment