From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5wzZ-0008Jh-5i for qemu-devel@nongnu.org; Fri, 09 Mar 2012 05:24:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5wzV-00069N-8Z for qemu-devel@nongnu.org; Fri, 09 Mar 2012 05:24:08 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:52824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5wzV-00067H-1P for qemu-devel@nongnu.org; Fri, 09 Mar 2012 05:24:05 -0500 Received: by iafj26 with SMTP id j26so2160616iaf.4 for ; Fri, 09 Mar 2012 02:24:03 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4F59DA3E.4010902@redhat.com> Date: Fri, 09 Mar 2012 11:23:58 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1331269308-22372-1-git-send-email-david@gibson.dropbear.id.au> <1331269308-22372-14-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1331269308-22372-14-git-send-email-david@gibson.dropbear.id.au> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 13/13] pseries: Implement IOMMU and DMA for PAPR PCI devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: agraf@suse.de, mst@redhat.com, eduard.munteanu@linux360.ro, qemu-devel@nongnu.org, rth@twiddle.net Il 09/03/2012 06:01, David Gibson ha scritto: > Currently the pseries machine emulation does not support DMA for emulated > PCI devices, because the PAPR spec always requires a (guest visible, > paravirtualized) IOMMU which was not implemented. Now that we have > infrastructure for IOMMU emulation, we can correct this and allow PCI DMA > for pseries. > > With the existing PAPR IOMMU code used for VIO devices, this is almost > trivial. We use a single DMAContext for each (virtual) PCI host bridge, > which is the usual configuration on real PAPR machines (which often have > _many_ PCI host bridges). What about virtio? Paolo