Re: [PATCH 6/6] mm/hugetlb: support free page reporting for cached hugepages
From: Michael S. Tsirkin
Date: Tue Jul 07 2026 - 06:18:44 EST
On Tue, Jul 07, 2026 at 06:42:35AM +0000, Sourav Panda wrote:
> Implement free page reporting for the HugeTLB dynamic cache.
>
> Register HugeTLB hstates with the page reporting framework if they
> support caching.
>
> When pages are added to the cache (either via recycling in
> free_huge_folio or direct population via sysfs nr_cached_hugepages),
> trigger a page reporting cycle.
>
> Page reporting isolates pages from the cache list, reports them to the
> hypervisor via virtio-balloon, and then drains them back to the cache
> list, marking them as reported (HPG_reported).
>
> If a page is allocated from the cache, or reclaimed, clear the reported
> flag.
>
> Signed-off-by: Sourav Panda <souravpanda@xxxxxxxxxx>
So if you are going to look into this, I feel the 1st step
should be reporting pages from hugepage_freelists - this
can be done independently.
--
MST