Re: [PATCH v3 15/19] mm/hugetlb_vmemmap: Move bootmem HVO setup to early init
From: Usama Arif
Date: Wed Jun 03 2026 - 08:35:55 EST
On 03/06/2026 13:24, Muchun Song wrote:
>
>
> On 2026/6/3 20:02, Usama Arif wrote:
>> On Tue, 2 Jun 2026 18:10:35 +0800 Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
>>
>>> Bootmem HugeTLB pages currently defer HVO setup to
>>> hugetlb_vmemmap_init_late(), because the optimization needs zone
>>> information.
>>>
>>> Now that zone initialization is available earlier, the bootmem HVO setup
>>> can be done directly from hugetlb_vmemmap_init_early(). This lets
>>> gigantic HugeTLB pages apply HVO as soon as they are allocated.
>>>
>>> Bootmem gigantic pages that span multiple zones are now filtered out
>>> when they are allocated, so the remaining bootmem gigantic pages seen by
>>> later hugetlb initialization are already zone-valid. As a result,
>>> hugetlb_vmemmap_init_late() no longer needs to handle bootmem HVO setup.
>>>
>>> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
>>> ---
Acked-by: Usama Arif <usama.arif@xxxxxxxxx>