Re: [PATCH v2 5/7] x86/mm: remove pgd_leaf definition in arch

From: Baoquan He
Date: Tue Apr 01 2025 - 23:40:08 EST


On 04/01/25 at 04:03pm, Oscar Salvador wrote:
> On Mon, Mar 31, 2025 at 04:13:25PM +0800, Baoquan He wrote:
> > pgd huge page is not supported yet, let's use the generic definition
> > in linux/pgtable.h.
> >
> > And also update the BUILD_BUG_ON() checking for pgd_leaf() in
> > pti_user_pagetable_walk_p4d() because pgd_leaf() returns boolean value.
> >
> > Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>
> > Cc: x86@xxxxxxxxxx
>
> I have been carrying a sort of this patch in my tree as well for quite
> some time now, and I think that Christophe also sent it some time ago,
> so glad someone finally pushed it
>
> https://patchwork.kernel.org/project/linux-mm/patch/20240704043132.28501-2-osalvador@xxxxxxx/

Oops, I even commented in Christophe's patch thread to ask why the
patchset hasn't been merged yet. Later when I focused on mm/gup.c code
reading, I forgot that posting completely. Hope you don't mind I grab
you and Christophe's credit since Ingo has picked it into x86/tip tree.

[PATCH v3 1/5] arch/x86: Drop own definition of pgd,p4d_leaf

>
> Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>
>
>
> --
> Oscar Salvador
> SUSE Labs
>