Re: [PATCH v3 01/10] iommu/vt-d: add wrapper functions for page allocations

From: David Rientjes
Date: Tue Dec 26 2023 - 19:27:57 EST


On Tue, 26 Dec 2023, Pasha Tatashin wrote:

> In order to improve observability and accountability of IOMMU layer, we
> must account the number of pages that are allocated by functions that
> are calling directly into buddy allocator.
>
> This is achieved by first wrapping the allocation related functions into a
> separate inline functions in new file:
>
> drivers/iommu/iommu-pages.h
>
> Convert all page allocation calls under iommu/intel to use these new
> functions.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>