]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/mm: add ARCH_PKEY_BITS to Kconfig
authorJoey Gouly <joey.gouly@arm.com>
Thu, 22 Aug 2024 15:10:45 +0000 (16:10 +0100)
committerWill Deacon <will@kernel.org>
Wed, 4 Sep 2024 11:52:40 +0000 (12:52 +0100)
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>
arch/x86/Kconfig

index 007bab9f2a0e399bc9b6938a443e62eb20f0ab67..683c0a64efe2dd75050ee27b33742c78c7bfcd95 100644 (file)
@@ -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