Re: [PATCH v6 3/4] iommu: debug-pagealloc: Track IOMMU pages

From: Jason Gunthorpe

Date: Tue Jan 13 2026 - 10:08:30 EST


On Tue, Jan 13, 2026 at 10:49:28AM +0000, Mostafa Saleh wrote:
> Would you have a problem if we added a new function in page_ext
> "page_ext_from_phys()" as Jason suggested?

Given the hidden complexity that David just pointed out I think this
is essential to encapsulate it in a function.

The function must be able to accept any phys_addr_t and safely returns
NULL if page_ext cannot be used for some reason.

Jason