On Sun, Apr 21, 2019 at 09:17:17AM +0800, Lu Baolu wrote: > +static inline bool device_needs_bounce(struct device *dev) > +{ > + struct pci_dev *pdev = NULL; > + > + if (intel_no_bounce) > + return false; > + > + if (dev_is_pci(dev)) > + pdev = to_pci_dev(dev); > + > + return pdev ? pdev->untrusted : false; > +}
Again, this and the option should not be in a specific iommu driver. _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu