qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]