Re: [patch 02/10] x86/mm/cpa: Rework static_protections()

2018-09-07 Thread Dave Hansen
On 09/07/2018 08:01 AM, Thomas Gleixner wrote: > +static inline pgprot_t static_protections(pgprot_t prot, unsigned long > address, > + unsigned long pfn) > +{ > + pgprotval_t forbidden; > + > + /* Operate on the virtual address */ > + forbidden =

[patch 02/10] x86/mm/cpa: Rework static_protections()

2018-09-07 Thread Thomas Gleixner
static_protections() is pretty unreadable. Split it up into separate checks for each protection area. Signed-off-by: Thomas Gleixner --- arch/x86/mm/pageattr.c | 159 + 1 file changed, 95 insertions(+), 64 deletions(-) --- a/arch/x86/mm/pageattr.