Re: [PATCH v6 8/8] hugetlb: batch TLB flushes when restoring vmemmap

From: Muchun Song
Date: Mon Sep 25 2023 - 22:20:26 EST




> On Sep 26, 2023, at 07:48, Mike Kravetz <mike.kravetz@xxxxxxxxxx> wrote:
>
> Update the internal hugetlb restore vmemmap code path such that TLB
> flushing can be batched. Use the existing mechanism of passing the
> VMEMMAP_REMAP_NO_TLB_FLUSH flag to indicate flushing should not be
> performed for individual pages. The routine hugetlb_vmemmap_restore_folios
> is the only user of this new mechanism, and it will perform a global
> flush after all vmemmap is restored.
>
> Signed-off-by: Joao Martins <joao.m.martins@xxxxxxxxxx>
> Signed-off-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>

Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Thanks.