Re: [PATCH 12/16] x86/mm/pae: Populate the user page-table with user pgd's

From: Dave Hansen
Date: Tue Jan 16 2018 - 16:15:26 EST


On 01/16/2018 01:10 PM, Thomas Gleixner wrote:
>
> static inline pteval_t supported_pgd_mask(void)
> {
> if (IS_ENABLED(CONFIG_X86_64))
> return __supported_pte_mask;
> return __supported_pte_mask & ~_PAGE_NX);
> }
>
> and get rid of the ifdeffery completely.

Heh, that's an entertaining way to do it. Joerg, if you go do it this
way, it would be nice to add all the other gunk that we don't allow to
be set in the PAE pgd.