Re: [PATCH] x86/64/mm: Map all kernel memory into trampoline_pgd
From: Joerg Roedel
Date: Wed Sep 15 2021 - 07:50:24 EST
Hi Mike,
On Tue, Sep 14, 2021 at 10:52:39AM +0300, Mike Rapoport wrote:
> On Mon, Sep 13, 2021 at 11:52:36AM +0200, Joerg Roedel wrote:
> > + for (i = pgd_index(__PAGE_OFFSET); i < PTRS_PER_PGD; i++)
> > + trampoline_pgd[i] = init_top_pgt[i].pgd;
>
> Don't we need to update the trampoline_pgd in sync_global_pgds() as well?
No, the trampoline_pgd is setup after preallocate_vmalloc_pages(), so
everything that would need synchronization is already in the reference
page-table.
Regards,
Joerg