From: Joey Gouly Date: Thu, 22 Aug 2024 15:10:45 +0000 (+0100) Subject: x86/mm: add ARCH_PKEY_BITS to Kconfig X-Git-Tag: v6.12-rc1~221^2~2^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5626f8d45e0951f418cfc06ad8be71e3f51e585f;p=thirdparty%2Flinux.git 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 Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: H. Peter Anvin Cc: x86@kernel.org Acked-by: Dave Hansen Link: https://lore.kernel.org/r/20240822151113.1479789-3-joey.gouly@arm.com Signed-off-by: Will Deacon --- diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 007bab9f2a0e3..683c0a64efe2d 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1889,6 +1889,10 @@ config X86_INTEL_MEMORY_PROTECTION_KEYS If unsure, say y. +config ARCH_PKEY_BITS + int + default 4 + choice prompt "TSX enable mode" depends on CPU_SUP_INTEL