> From: Jason Gunthorpe <[email protected]>
> Sent: Thursday, September 4, 2025 1:47 AM
> 
> IOMMU HW now supports updating a dirty bit in an entry when a DMA
> writes
> to the entry's VA range. iommufd has a uAPI to read and clear the dirty
> bits from the tables.
> 
> This is a trivial recursive descent algorithm to read and optionally clear
> the dirty bits. The format needs a function to tell if a contiguous entry
> is dirty, and a function to clear a contiguous entry back to clean.
> 
> Tested-by: Alejandro Jimenez <[email protected]>
> Signed-off-by: Jason Gunthorpe <[email protected]>

Reviewed-by: Kevin Tian <[email protected]>

Reply via email to