Re: [PATCH 2/3] iommu/vt-d: Apply per-device dma_ops

2019-08-13 Thread Lu Baolu
Hi again, On 8/7/19 11:06 AM, Lu Baolu wrote: Hi Christoph, On 8/6/19 2:43 PM, Christoph Hellwig wrote: Hi Lu, I really do like the switch to the per-device dma_map_ops, but: On Thu, Aug 01, 2019 at 02:01:55PM +0800, Lu Baolu wrote: Current Intel IOMMU driver sets the system level dma_ops.

Re: [PATCH 2/3] iommu/vt-d: Apply per-device dma_ops

2019-08-06 Thread Lu Baolu
Hi Christoph, On 8/6/19 2:43 PM, Christoph Hellwig wrote: Hi Lu, I really do like the switch to the per-device dma_map_ops, but: On Thu, Aug 01, 2019 at 02:01:55PM +0800, Lu Baolu wrote: Current Intel IOMMU driver sets the system level dma_ops. This implementation has at least the following d

Re: [PATCH 2/3] iommu/vt-d: Apply per-device dma_ops

2019-08-05 Thread Christoph Hellwig
Hi Lu, I really do like the switch to the per-device dma_map_ops, but: On Thu, Aug 01, 2019 at 02:01:55PM +0800, Lu Baolu wrote: > Current Intel IOMMU driver sets the system level dma_ops. This > implementation has at least the following drawbacks: 1) each > dma API will go through the IOMMU driv

[PATCH 2/3] iommu/vt-d: Apply per-device dma_ops

2019-07-31 Thread Lu Baolu
Current Intel IOMMU driver sets the system level dma_ops. This implementation has at least the following drawbacks: 1) each dma API will go through the IOMMU driver even the devices are using identity mapped domains; 2) if user requests to use an identity mapped domain (a.k.a. bypass iommu translat