On 10/17/25 10:22, Zhenzhong Duan wrote:
Pass IOMMU_HWPT_GET_DIRTY_BITMAP_NO_CLEAR when doing the last dirty
bitmap query right before unmap, no PTEs flushes. This accelerates the
query without issue because unmap will tear down the mapping anyway.

Co-developed-by: Joao Martins <[email protected]>
Signed-off-by: Joao Martins <[email protected]>
Signed-off-by: Zhenzhong Duan <[email protected]>
Tested-by: Xudong Hao <[email protected]>
Tested-by: Giovannio Cabiddu <[email protected]>
---
  include/system/iommufd.h | 2 +-
  backends/iommufd.c       | 5 +++--
  hw/vfio/iommufd.c        | 5 +++--
  backends/trace-events    | 2 +-
  4 files changed, 8 insertions(+), 6 deletions(-)



Reviewed-by: Cédric Le Goater <[email protected]>

Thanks,

C.



Reply via email to