> From: Lu Baolu <[email protected]> > Sent: Sunday, April 10, 2022 6:25 PM > > Use below data structures for SVA implementation in the IOMMU core: > > - struct iommu_sva_ioas > Represent the I/O address space shared with an application CPU address > space. This structure has a 1:1 relationship with an mm_struct. It > graps a "mm->mm_count" refcount during creation and drop it on release.
s/graps/grabs > > - struct iommu_domain (IOMMU_DOMAIN_SVA type) > Represent a hardware pagetable that the IOMMU hardware could use for > SVA translation. Multiple iommu domains could be bound with an SVA ioas > and each graps a refcount from ioas in order to make sure ioas could > only be freed after all domains have been unbound. > > - struct iommu_sva > Represent a bond relationship between an SVA ioas and an iommu domain. > If a bond already exists, it's reused and a reference is taken. > > Signed-off-by: Lu Baolu <[email protected]> btw given the actually intention of above structures does it make more sense to s/iommu_sva_ioas/iommu_sva/ and s/iommu_sva/iommu_sva_bond? Thanks Kevin _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
