Skip to content

Commit 5626f8d

Browse files
jgoulywilldeacon
authored andcommitted
x86/mm: add ARCH_PKEY_BITS to Kconfig
The new config option specifies how many bits are in each PKEY. Signed-off-by: Joey 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: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/r/20240822151113.1479789-3-joey.gouly@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 12930e3 commit 5626f8d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

arch/x86/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,6 +1889,10 @@ config X86_INTEL_MEMORY_PROTECTION_KEYS
18891889

18901890
If unsure, say y.
18911891

1892+
config ARCH_PKEY_BITS
1893+
int
1894+
default 4
1895+
18921896
choice
18931897
prompt "TSX enable mode"
18941898
depends on CPU_SUP_INTEL

0 commit comments

Comments
 (0)