From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAipj-0005IP-NU for qemu-devel@nongnu.org; Thu, 22 Mar 2012 10:17:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAipe-0004ob-PQ for qemu-devel@nongnu.org; Thu, 22 Mar 2012 10:17:43 -0400 Received: from am1ehsobe001.messaging.microsoft.com ([213.199.154.204]:43727 helo=am1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAipe-0004oJ-H0 for qemu-devel@nongnu.org; Thu, 22 Mar 2012 10:17:38 -0400 Message-ID: <4F6B2E21.8000001@amd.com> Date: Thu, 22 Mar 2012 14:50:25 +0100 From: Wei Wang MIME-Version: 1.0 References: <1332382488-12869-1-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1332382488-12869-1-git-send-email-david@gibson.dropbear.id.au> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [0/13] RFC: Guest visible IOMMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: Joerg Roedel , mst@redhat.com, qemu-devel@nongnu.org, eduard.munteanu@linux360.ro On 03/22/2012 03:14 AM, David Gibson wrote: > Here's another version of my series implementing the nevessary > framework for emulation of guest-visible IOMMUs. I've incorporated > the feedback from the last posting. I'm fairly confident that > preliminary patches 1-3 are ready to go in, the rest might still need > more consideration. > > In particular, if anyone has thoughts on how to handle the case where > an IOMMU mapping is invalidated by the guest where a qemu-side device > currently has that piece of IOVA-space dma_memory_map()ed, I'd be > interested to hear it. > > > Hi David, I am Xen developer. Currently I am working on a hardware based iommu emulation for amd iommu v2 systems (we need this to enable iommuv2 drivers in guest OS and therefore to passthroug gpgpu to hvm guest). In this work, only a virtual iommu device has to be registered on qemu bus and dma translations are still performed by iommu hardware. So I wonder if it is possible that I could integrate my work with yours. I had a proof-of-concept patch for qemu: http://lists.xen.org/archives/html/xen-devel/2011-12/msg01269.html my last post was: http://lists.xen.org/archives/html/xen-devel/2012-03/msg00591.html Thanks and looking forward to your thoughts Wei