Re: [Qemu-devel] [PATCH 4/8] Add universal DMA helper functions

2012-02-27 Thread Eduard - Gabriel Munteanu
On Mon, Feb 27, 2012 at 12:33:49PM +0200, Michael S. Tsirkin wrote: > On Mon, Feb 27, 2012 at 11:22:43AM +1100, David Gibson wrote: > > On Sun, Feb 26, 2012 at 12:04:49PM +0200, Michael S. Tsirkin wrote: > > > On Fri, Feb 24, 2012 at 02:27:39PM +1100, David Gibson wrote: [snip] > > > > > > I'm a

Re: [Qemu-devel] [PATCH 4/8] Add universal DMA helper functions

2012-02-27 Thread Michael S. Tsirkin
On Mon, Feb 27, 2012 at 11:22:43AM +1100, David Gibson wrote: > On Sun, Feb 26, 2012 at 12:04:49PM +0200, Michael S. Tsirkin wrote: > > On Fri, Feb 24, 2012 at 02:27:39PM +1100, David Gibson wrote: > > > Not that long ago, every device implementation using DMA directly > > > accessed guest memory u

Re: [Qemu-devel] [PATCH 4/8] Add universal DMA helper functions

2012-02-26 Thread David Gibson
On Sun, Feb 26, 2012 at 12:04:49PM +0200, Michael S. Tsirkin wrote: > On Fri, Feb 24, 2012 at 02:27:39PM +1100, David Gibson wrote: > > Not that long ago, every device implementation using DMA directly > > accessed guest memory using cpu_physical_memory_*(). This meant that > > adding support for

Re: [Qemu-devel] [PATCH 4/8] Add universal DMA helper functions

2012-02-26 Thread Eduard - Gabriel Munteanu
On Fri, Feb 24, 2012 at 02:27:39PM +1100, David Gibson wrote: > Not that long ago, every device implementation using DMA directly > accessed guest memory using cpu_physical_memory_*(). This meant that > adding support for a guest visible IOMMU would require changing every > one of these devices to

Re: [Qemu-devel] [PATCH 4/8] Add universal DMA helper functions

2012-02-26 Thread Eduard - Gabriel Munteanu
On Sun, Feb 26, 2012 at 12:04:49PM +0200, Michael S. Tsirkin wrote: > On Fri, Feb 24, 2012 at 02:27:39PM +1100, David Gibson wrote: > > Not that long ago, every device implementation using DMA directly > > accessed guest memory using cpu_physical_memory_*(). This meant that > > adding support for

Re: [Qemu-devel] [PATCH 4/8] Add universal DMA helper functions

2012-02-26 Thread Michael S. Tsirkin
On Fri, Feb 24, 2012 at 02:27:39PM +1100, David Gibson wrote: > Not that long ago, every device implementation using DMA directly > accessed guest memory using cpu_physical_memory_*(). This meant that > adding support for a guest visible IOMMU would require changing every > one of these devices to

[Qemu-devel] [PATCH 4/8] Add universal DMA helper functions

2012-02-23 Thread David Gibson
Not that long ago, every device implementation using DMA directly accessed guest memory using cpu_physical_memory_*(). This meant that adding support for a guest visible IOMMU would require changing every one of these devices to go through IOMMU translation. Shortly before qemu 1.0, I made a star