On 2023/5/19 19:51, Jason Gunthorpe wrote:
On Fri, May 19, 2023 at 12:47:24PM +0100, Joao Martins wrote:
In practice it is done as soon after the domain is created but I understand what
you mean that both should be together; I have this implemented like that as my
first take as a domain_alloc passed flags, but I was a little undecided because
we are adding another domain_alloc() op for the user-managed pagetable and after
having another one we would end up with 3 ways of creating iommu domain -- but
maybe that's not an issue
It should ride on the same user domain alloc op as some generic flags,
there is no immediate use case to enable dirty tracking for
non-iommufd page tables
This is better than the current solution.
Best regards,
baolu