Skip to content

Commit 6fb8956

Browse files
kiryltorvalds
authored andcommitted
x86/cpufeature: Add 5-level paging detection
Look for 'la57' in /proc/cpuinfo to see if your machine supports 5-level paging. Signed-off-by: Kirill A. Shutemov <[email protected]> Acked-by: Michal Hocko <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent ea6200e commit 6fb8956

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/include/asm/cpufeatures.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@
289289
#define X86_FEATURE_PKU (16*32+ 3) /* Protection Keys for Userspace */
290290
#define X86_FEATURE_OSPKE (16*32+ 4) /* OS Protection Keys Enable */
291291
#define X86_FEATURE_AVX512_VPOPCNTDQ (16*32+14) /* POPCNT for vectors of DW/QW */
292-
#define X86_FEATURE_RDPID (16*32+ 22) /* RDPID instruction */
292+
#define X86_FEATURE_LA57 (16*32+16) /* 5-level page tables */
293+
#define X86_FEATURE_RDPID (16*32+22) /* RDPID instruction */
293294

294295
/* AMD-defined CPU features, CPUID level 0x80000007 (ebx), word 17 */
295296
#define X86_FEATURE_OVERFLOW_RECOV (17*32+0) /* MCA overflow recovery support */

0 commit comments

Comments
 (0)