Re: [PATCH 09/11] x86/pti: enable global pages for shared areas

From: Dave Hansen
Date: Fri Mar 23 2018 - 15:37:06 EST


On 03/23/2018 12:12 PM, Nadav Amit wrote:
>> /*
>> + * Setting 'target_pmd' below creates a mapping in both
>> + * the user and kernel page tables. It is effectively
>> + * global, so set it as global in both copies.
>> + */
>> + *pmd = pmd_set_flags(*pmd, _PAGE_GLOBAL);
> if (boot_cpu_has(X86_FEATURE_PGE)) ?

Good catch. I'll update that.