Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-05-14 Thread Benjamin Herrenschmidt
On Sat, 2011-05-14 at 18:27 +0300, Eduard - Gabriel Munteanu wrote: > No, I've made some progress but I've still got a few concerns to > address, mainly how to handle unaligned accesses and some things > related > to the IOMMU behavior like target aborts. > > I've added some macro magic to declare

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-05-14 Thread Eduard - Gabriel Munteanu
On Tue, May 10, 2011 at 11:44:26AM +1000, David Gibson wrote: > On Thu, Apr 21, 2011 at 09:47:31PM +0300, Eduard - Gabriel Munteanu wrote: > > On Thu, Apr 21, 2011 at 05:03:47PM +1000, David Gibson wrote: > > > A few months ago, Eduard - Gabriel Munteanu posted a series of patches > > > implementin

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-05-09 Thread David Gibson
On Thu, Apr 21, 2011 at 09:47:31PM +0300, Eduard - Gabriel Munteanu wrote: > On Thu, Apr 21, 2011 at 05:03:47PM +1000, David Gibson wrote: > > A few months ago, Eduard - Gabriel Munteanu posted a series of patches > > implementing support for emulating the AMD PCI IOMMU > > (http://lists.nongnu.org

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-05-08 Thread David Gibson
On Fri, Apr 29, 2011 at 07:27:38AM -0700, Richard Henderson wrote: > On 04/28/2011 02:57 PM, Richard Henderson wrote: > > I've had a read through the patches posted in January. It all does > > seem relatively sane. At least, I can readily see how I would apply > > these interfaces to my Alpha por

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-05-08 Thread David Gibson
On Thu, Apr 28, 2011 at 02:57:14PM -0700, Richard Henderson wrote: > On 04/21/2011 02:39 AM, Alexander Graf wrote: > > How exactly is this going to be used? Also, in the end I think that > > most devices should just go through a PCI specific interface that > > then calls the DMA helpers: > > > > p

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-05-08 Thread David Gibson
On Thu, Apr 21, 2011 at 11:39:22AM +0200, Alexander Graf wrote: > On 21.04.2011, at 09:03, David Gibson wrote: [snip] > > @@ -934,6 +939,8 @@ echo " --enable-docsenable documentation > > build" > > echo " --disable-docs disable documentation build" > > echo " --disable-vho

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-04-29 Thread Richard Henderson
On 04/28/2011 02:57 PM, Richard Henderson wrote: > I've had a read through the patches posted in January. It all does > seem relatively sane. At least, I can readily see how I would apply > these interfaces to my Alpha port without trouble. I take that back, I see one rather annoying problem: th

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-04-28 Thread Richard Henderson
On 04/21/2011 02:39 AM, Alexander Graf wrote: > How exactly is this going to be used? Also, in the end I think that > most devices should just go through a PCI specific interface that > then calls the DMA helpers: > > pci_memory_rw(PCIDevice *d, ...) > > even if it's only as simple as calling >

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-04-26 Thread Joerg Roedel
Hello David, On Thu, Apr 21, 2011 at 03:03:47AM -0400, David Gibson wrote: > A few months ago, Eduard - Gabriel Munteanu posted a series of patches > implementing support for emulating the AMD PCI IOMMU > (http://lists.nongnu.org/archive/html/qemu-devel/2011-01/msg03196.html). > > In fact, this s

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-04-21 Thread Eduard - Gabriel Munteanu
On Thu, Apr 21, 2011 at 05:03:47PM +1000, David Gibson wrote: > A few months ago, Eduard - Gabriel Munteanu posted a series of patches > implementing support for emulating the AMD PCI IOMMU > (http://lists.nongnu.org/archive/html/qemu-devel/2011-01/msg03196.html). > > In fact, this series implemen

Re: [Qemu-devel] Supporting emulation of IOMMUs

2011-04-21 Thread Alexander Graf
On 21.04.2011, at 09:03, David Gibson wrote: > A few months ago, Eduard - Gabriel Munteanu posted a series of patches > implementing support for emulating the AMD PCI IOMMU > (http://lists.nongnu.org/archive/html/qemu-devel/2011-01/msg03196.html). > > In fact, this series implemented a general D

[Qemu-devel] Supporting emulation of IOMMUs

2011-04-21 Thread David Gibson
A few months ago, Eduard - Gabriel Munteanu posted a series of patches implementing support for emulating the AMD PCI IOMMU (http://lists.nongnu.org/archive/html/qemu-devel/2011-01/msg03196.html). In fact, this series implemented a general DMA/IOMMU layer which can be used by any device model, and