Hi Fangyu, We should add "select IOMMUFD_DRIVER if IOMMUFD" in drivers/iommu/riscv/Kconfig to enable IOMMU_HWPT_GET_DIRTY_BITMAP, otherwise it always returns -EOPNOTSUPP. I guess it belongs in the dirty tracking patch. Thanks, Shuai