qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Wei Wang <wei.wang2@amd.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>,
	mst@redhat.com, qemu-devel@nongnu.org,
	eduard.munteanu@linux360.ro
Subject: Re: [Qemu-devel] [0/13] RFC: Guest visible IOMMU
Date: Fri, 23 Mar 2012 13:02:17 +1100	[thread overview]
Message-ID: <20120323020217.GE9087@truffala.fritz.box> (raw)
In-Reply-To: <4F6B2E21.8000001@amd.com>

On Thu, Mar 22, 2012 at 02:50:25PM +0100, Wei Wang wrote:
> 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

I'd be very glad to see AMD IOMMU support integrated with my
infrastructure.  Eduard - Gabriel's original patch series included an
AMD IOMMU emulation, but since I'm not really familiar with that
IOMMU, and don't have the hardware to test it, I didn't feel confident
to attempt porting it to my new infrastructure.

I notice that you seem to be aiming mostly at pass-through.
Pass-through has some complications of its own - this patch series was
aimed firstly at IOMMU emulation, although I'm also concerned with
pass-through (we're currently struggling with how best to handle
pass-through for pSeries machines).

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

      reply	other threads:[~2012-03-23  2:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22  2:14 [Qemu-devel] [0/13] RFC: Guest visible IOMMU David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 01/13] Use DMADirection type for dma_bdrv_io David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 02/13] Better support for dma_addr_t variables David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 03/13] usb-xhci: Use PCI DMA helper functions David Gibson
2012-03-22 10:00   ` Gerd Hoffmann
2012-03-23  2:05     ` David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 04/13] Implement cpu_physical_memory_zero() David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 05/13] iommu: Add universal DMA helper functions David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 06/13] usb-ohci: Use " David Gibson
2012-03-22 10:01   ` Gerd Hoffmann
2012-03-22  2:14 ` [Qemu-devel] [PATCH 07/13] iommu: Make sglists and dma_bdrv helpers use new universal DMA helpers David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 08/13] ide/ahci: Use universal DMA helper functions David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 09/13] usb: Convert usb_packet_{map, unmap} to universal DMA helpers David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 10/13] iommu: Introduce IOMMU emulation infrastructure David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 11/13] pseries: Convert sPAPR TCEs to use generic IOMMU infrastructure David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 12/13] iommu: Allow PCI to use " David Gibson
2012-03-22  2:14 ` [Qemu-devel] [PATCH 13/13] pseries: Implement IOMMU and DMA for PAPR PCI devices David Gibson
2012-03-22 13:50 ` [Qemu-devel] [0/13] RFC: Guest visible IOMMU Wei Wang
2012-03-23  2:02   ` David Gibson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120323020217.GE9087@truffala.fritz.box \
    --to=david@gibson.dropbear.id.au \
    --cc=eduard.munteanu@linux360.ro \
    --cc=joerg.roedel@amd.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wei.wang2@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).