Hi Christoph,
On 8/30/19 3:31 PM, Christoph Hellwig wrote:
On Fri, Aug 30, 2019 at 03:17:14PM +0800, Lu Baolu wrote:
+#include <linux/pci.h>
+ if (dev_is_untrusted(hwdev) && zero_size)
+ memset(zero_addr, 0, zero_size);
As said before swiotlb must not grow pci dependencies like this.
I understand your concern. I will try to remove this dependency in the
next version.
Please move the untrusted flag to struct device.
The untrusted flag is introduced in another series. I agree that we
could consider to move it to struct device, but I think making it
in a separated patch looks better.
Best regards,
Lu Baolu
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu