Re: [RFC PATCH v5 02/10] iommupt: Add RISC-V dirty tracking PTE ops

From: Jason Gunthorpe

Date: Wed Oct 28 2026 - 11:42:25 EST


On Tue, 20 Oct 2026 17:40:58 +0800, fangyu.yu@xxxxxxxxxxxxxxxxx <fangyu.yu@xxxxxxxxxxxxxxxxx> wrote:
> Implement the three dirty-tracking hooks required by the generic page
> table framework for the RISC-V format:
>
> pt_entry_is_write_dirty():
> Check the D bit (bit 7) in the PTE.
>
> pt_entry_make_write_clean():
> Clear the D bit across the full contiguous range.
>
> [...]

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

--
Jason