• Dave Hansen's avatar
    x86/mm/pkeys: Add PTE bits for storing protection key · 5c1d90f5
    Dave Hansen authored
    Previous documentation has referred to these 4 bits as "ignored".
    That means that software could have made use of them.  But, as
    far as I know, the kernel never used them.
    
    They are still ignored when protection keys is not enabled, so
    they could theoretically still get used for software purposes.
    
    We also implement "empty" versions so that code that references
    to them can be optimized away by the compiler when the config
    option is not enabled.
    Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
    Reviewed-by: default avatarThomas 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/20160212210205.81E33ED6@viggo.jf.intel.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    5c1d90f5
pgtable_types.h 14.1 KB