On Tue, Aug 24, 2021 at 09:19:16PM -0300, Jason Gunthorpe wrote: > The mechanism looks fine, but I think the core code is much clearer if > the name is not 'mediated' but 'sw_iommu' or something that implies > the group is running with a software page table. mediated has become > so overloaded in this code. I thought that was sort of the definition of mediated - there needs to ben entify that "mediates" access so that a user of this interface can't trigger undmediated DMA to arbitrary addresses. My other choice that I used for a while was "virtual". sw_iommu sounds a little clumsy. I guess either way we need some documentation describing it along the above lines.