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

From: Christoph Hellwig
Date: Wed Nov 13 2019 - 04:54:04 EST


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:

http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma-bypass