On Wed, May 04, 2022 at 07:48:58PM +0800, Baolu Lu wrote: > > + /* > > + * New drivers do not implement detach_dev, so changing the domain is > > + * done by calling attach on the new domain. Drivers should implement > > + * this so that DMA is always translated by either the new, old, or a > > + * blocking domain. DMA should never become untranslated. > > + * > > + * Note that this is called in error unwind paths, attaching to a > > + * domain that has already been attached cannot fail. > > + */ > > ret = __iommu_group_for_each_dev(group, group->default_domain, > ^^^^^^^^^^^^^^^^^^^^^^ > > I suppose this should be @new_domain, right?
Yes, thank you Jason _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
