Re: [PATCH RFC v3 2/4] mm/pgtable: Make pfn_pte() filter out huge page attributes
From: Yin Tirui
Date: Mon Mar 09 2026 - 23:36:39 EST
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