Re: [tip:efi/core] x86/mm/pat: Use _PAGE_GLOBAL bit for EFI page table mappings
From: Linus Torvalds
Date: Wed Feb 24 2016 - 13:56:18 EST
On Wed, Feb 24, 2016 at 8:36 AM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>>
>> So the EFI runtime crap should not change once it is mapped. And those
>> should be global. It is only natural.
>
> Why is it natural?
>
> Long-term, I'd rather see EFI runtime services use an actual mm_struct
> and use_mm.
Definitely.
The EFI runtime page mapping may be unchanging, but that doesn't mean
we should be mapping it all the time - the mapping may not change, but
we will change away from it.
So marking those pages global is very wrong.
Linus