Re: [PATCH 2/3] x86/mm: introduce __PAGE_KERNEL_GLOBAL

From: Dave Hansen
Date: Fri Feb 16 2018 - 13:03:56 EST


On 02/16/2018 09:47 AM, Nadav Amit wrote:
>> But, this also means that we now get *no* opportunity to use
>> global pages with PTI, even for data which is shared such as the
>> cpu_entry_area and entry/exit text.
>
> Doesnât this patch change the kernel behavior when the ânoptiâ
> parameter is used?

I don't think so. It takes the "nopti" behavior and effectively makes
it apply everywhere. So it changes the PTI behavior, not the "nopti"
behavior.

Maybe it would help to quote the code that you think does this instead
of the description. :)