lkml.org 
[lkml]   [2018]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC, PATCH 16/22] x86/mm: Preserve KeyID on pte_modify() and pgprot_modify()
    From
    Date
    On 03/05/2018 08:26 AM, Kirill A. Shutemov wrote:
    > + * It includes full range of PFN bits regardless if they were claimed for KeyID
    > + * or not: we want to preserve KeyID on pte_modify() and pgprot_modify().
    > */
    > -#define _PAGE_CHG_MASK (PTE_PFN_MASK | _PAGE_PCD | _PAGE_PWT | \
    > +#define PTE_PFN_MASK_MAX \
    > + (((signed long)PAGE_MASK) & ((1UL << __PHYSICAL_MASK_SHIFT) - 1))
    > +#define _PAGE_CHG_MASK (PTE_PFN_MASK_MAX | _PAGE_PCD | _PAGE_PWT | \
    > _PAGE_SPECIAL | _PAGE_ACCESSED | _PAGE_DIRTY | \
    > _PAGE_SOFT_DIRTY)

    Is there a way to make this:

    #define _PAGE_CHG_MASK (PTE_PFN_MASK | PTE_KEY_MASK...? | _PAGE_PCD |

    That would be a lot more understandable.

    \
     
     \ /
      Last update: 2018-03-05 20:10    [W:2.482 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site