lkml.org 
[lkml]   [2018]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 25/39] x86/mm/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32
    Date
    From: Joerg Roedel <jroedel@suse.de>

    Move it out of the X86_64 specific processor defines so
    that its visible for 32bit too.

    Reviewed-by: Andy Lutomirski <luto@kernel.org>
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    ---
    arch/x86/include/asm/processor-flags.h | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    diff --git a/arch/x86/include/asm/processor-flags.h b/arch/x86/include/asm/processor-flags.h
    index 625a52a..02c2cbd 100644
    --- a/arch/x86/include/asm/processor-flags.h
    +++ b/arch/x86/include/asm/processor-flags.h
    @@ -39,10 +39,6 @@
    #define CR3_PCID_MASK 0xFFFull
    #define CR3_NOFLUSH BIT_ULL(63)

    -#ifdef CONFIG_PAGE_TABLE_ISOLATION
    -# define X86_CR3_PTI_PCID_USER_BIT 11
    -#endif
    -
    #else
    /*
    * CR3_ADDR_MASK needs at least bits 31:5 set on PAE systems, and we save
    @@ -53,4 +49,8 @@
    #define CR3_NOFLUSH 0
    #endif

    +#ifdef CONFIG_PAGE_TABLE_ISOLATION
    +# define X86_CR3_PTI_PCID_USER_BIT 11
    +#endif
    +
    #endif /* _ASM_X86_PROCESSOR_FLAGS_H */
    --
    2.7.4
    \
     
     \ /
      Last update: 2018-07-11 13:32    [W:4.175 / U:0.568 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site