IOMMU_DEV_FEAT_HWDBM just tells user whether underlying IOMMU driver supportsdesign it as not switchable. I will modify the commit message of patch#12, thanks!I am not sure that I fully get your point. But I can't see any gaps of
using iommu_dev_enable/disable_feature() to switch dirty log on and off.
Probably I missed anything.
dirty tracking, it is not used to management the status of dirty log tracking.
The feature reporting is per device, but the status management is per iommu_domain.
Only when all devices in a domain support HWDBM, we can start dirty log for the domain.
And I think we'd better not mix the feature reporting and status management. Thoughts?