Re: [PATCH v5 02/10] iommu/vt-d: Use per-device dma_ops

Christoph Hellwig
2019-11-13T09:54:04Z

On Wed, Nov 13, 2019 at 08:03:12AM +0100, Christoph Hellwig wrote:
> Indeed. And one idea would be to lift the code in the powerpc
> dma_iommu_ops that check a flag and use the direct ops to the generic
> dma code and a flag in struct device. We can then switch the intel
> iommu ops (and AMD Gart) over to it.

Let me know what you think of the branch below. Only compile tested
and booted on qemu with an emulated intel iommu: