[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/13] iommu: Add universal DMA helper functions
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 05/13] iommu: Add universal DMA helper functions |
Date: |
Fri, 09 Mar 2012 12:55:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
Il 09/03/2012 12:19, David Gibson ha scritto:
>> >
>> > This is opposite to the convention of dma_buf_read/dma_buf_write, which
>> > is from the point of view of the device.
> Uh, these are from the point of view of the device - the device writes
> to memory == transfer from device.
Right, dma_buf_read = "read from device". The idea with dma_buf_read
was to make it the same as dma_bdrv_read().
> More importantly, this is the same
> convention as cpu_physical_memory_{read,write}() which is what these
> generally replace.
Understood.
My point was not really to bikeshed, just to note that probably
dma_buf_read/dma_buf_write become very confusing now. So it is best to
remove them and just replace it with dma_buf_rw and a DMADirection
argument). Can you do that?
Thanks,
Paolo
- [Qemu-devel] [0/13] Implement support for guest visible IOMMUs, David Gibson, 2012/03/09
- [Qemu-devel] [PATCH 04/13] Implement cpu_physical_memory_zero(), David Gibson, 2012/03/09
- [Qemu-devel] [PATCH 12/13] iommu: Allow PCI to use IOMMU infrastructure, David Gibson, 2012/03/09
- [Qemu-devel] [PATCH 07/13] iommu: Make sglists and dma_bdrv helpers use new universal DMA helpers, David Gibson, 2012/03/09
- Re: [Qemu-devel] [PATCH 07/13] iommu: Make sglists and dma_bdrv helpers use new universal DMA helpers, Paolo Bonzini, 2012/03/09
[Qemu-devel] [PATCH 01/13] Use DMADirection type for dma_bdrv_io, David Gibson, 2012/03/09