Re: [PATCH RFC v3 2/4] mm/pgtable: Make pfn_pte() filter out huge page attributes

Yin Tirui
2026-03-10T03:36:40Z

On 3/6/2026 12:25 PM, Matthew Wilcox wrote:
>
> I don't think we should have pgprot_large_2_4k(). Or rather, I think it
> should be embedded in pmd_pgprot() / pud_pgprot(). That is, we should
> have an 'ideal' pgprot which, on x86, perhaps matches that used by the
> 4k level. pfn_pmd() should be converting from the ideal pgprot to
> that actually used by PMDs (and setting _PAGE_PSE?)
>

Hi Willy,

I will take this route and implement the embedded approach for the v4
respin.

--
Yin Tirui