On Thu, May 18, 2023 at 09:46:31PM +0100, Joao Martins wrote: > Throughout IOMMU domain lifetime that wants to use dirty tracking, some > guarantees are needed such that any device attached to the iommu_domain > supports dirty tracking. > > The idea is to handle a case where IOMMUs are assymetric feature-wise and > thus the capability may not be advertised for all devices. This is done by > adding a flag into HWPT_ALLOC namely: > > IOMMUFD_HWPT_ALLOC_ENFORCE_DIRTY The flag to userspace makes sense but it should flow through as a flag to alloc domain user not as an enforce op. The enforce op exists for the wbinvd thing because of historical reasons where it was supposed to auto-detect, it is not a great pattern to copy. Jason