x86/cpu, x86/mm/pkeys: Define new CR4 bit
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 12 Feb 2016 21:02:02 +0000 (13:02 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 16 Feb 2016 09:11:14 +0000 (10:11 +0100)
There is a new bit in CR4 for enabling protection keys.  We
will actually enable it later in the series.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave@sr71.net>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20160212210202.3CFC3DB2@viggo.jf.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/uapi/asm/processor-flags.h

index 79887abcb5e1fe1e45c08e94a3912fdd4ede9d4e..567de50a4c2a59c1a85ed4ee6025498352227dc1 100644 (file)
 #define X86_CR4_SMEP           _BITUL(X86_CR4_SMEP_BIT)
 #define X86_CR4_SMAP_BIT       21 /* enable SMAP support */
 #define X86_CR4_SMAP           _BITUL(X86_CR4_SMAP_BIT)
+#define X86_CR4_PKE_BIT                22 /* enable Protection Keys support */
+#define X86_CR4_PKE            _BITUL(X86_CR4_PKE_BIT)
 
 /*
  * x86-64 Task Priority Register, CR8