From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Y7z-0002Vv-AH for qemu-devel@nongnu.org; Sat, 10 Mar 2012 21:03:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6Y7x-0004ne-DY for qemu-devel@nongnu.org; Sat, 10 Mar 2012 21:03:18 -0500 Received: from gate.crashing.org ([63.228.1.57]:47575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Y7x-0004ms-4l for qemu-devel@nongnu.org; Sat, 10 Mar 2012 21:03:17 -0500 Message-ID: <1331431367.3105.88.camel@pasglop> From: Benjamin Herrenschmidt Date: Sun, 11 Mar 2012 13:02:47 +1100 In-Reply-To: <20120309105847.GA24916@truffala.fritz.box> References: <1331269308-22372-1-git-send-email-david@gibson.dropbear.id.au> <1331269308-22372-14-git-send-email-david@gibson.dropbear.id.au> <4F59DA3E.4010902@redhat.com> <20120309105847.GA24916@truffala.fritz.box> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 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: mst@redhat.com, qemu-devel@nongnu.org, agraf@suse.de, eduard.munteanu@linux360.ro, Paolo Bonzini , rth@twiddle.net On Fri, 2012-03-09 at 21:58 +1100, David Gibson wrote: > > What about virtio? > > virtio doesn't use virtualized PCI DMA, it uses direct hypervisor > access to guest memory, by guest physical address. It *shouldn't*, > but it does - that's the way it's specced and that's the way the guest > kernel expects it to be. It could be fixed with a new feature bit, > but that's a project for another day. More precisely, the patch don't break virtio as virtio just bypasses this all. Also having virtio go through the iommu might not be such a great idea, it should definitely remain optional. The ability of virtio to go straight to guest memory has some significant performance advantages. Cheers, Ben.