From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEfe0-00059u-09 for qemu-devel@nongnu.org; Mon, 13 Jul 2015 11:27:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEfdt-00023y-Qm for qemu-devel@nongnu.org; Mon, 13 Jul 2015 11:27:47 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:38357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEfdt-00022k-6o for qemu-devel@nongnu.org; Mon, 13 Jul 2015 11:27:41 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Jul 2015 00:57:28 +1000 From: Alexey Kardashevskiy Date: Tue, 14 Jul 2015 00:56:16 +1000 Message-Id: <1436799381-16150-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [RFC PATCH qemu v2 0/5] vfio: SPAPR IOMMU v2 (memory preregistration support) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Alex Williamson , qemu-ppc@nongnu.org, Michael Roth , David Gibson Here are few patches to prepare an existing listener for handling memory preregistration for SPAPR guests running on POWER8. This used to be a part of DDW patchset but now is separated as requested. I left versions in changelog of 5/5 for convenience. Please comment, specifically about how many memory listeners we want to have in VFIO. The existing listener listens on PCI address space which in fact is RAM on x86 but is not on sPAPR. Memory preregistration requires listening on RAM for sPAPR too. Having a listener without a filter is tricky as it will be notified on VIO address spaces too so having more that one listener makes some sense. Any input is welcome. Thanks! Alexey Kardashevskiy (5): vfio: Switch from TARGET_PAGE_MASK to qemu_real_host_page_mask vfio: Skip PCI BARs in memory listener vfio: Store IOMMU type in container vfio: Refactor memory listener to accommodate more IOMMU types vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering) hw/vfio/common.c | 207 ++++++++++++++++++++++++++++++++---------- hw/vfio/pci.c | 30 +++--- include/hw/vfio/vfio-common.h | 7 ++ trace-events | 2 + 4 files changed, 183 insertions(+), 63 deletions(-) -- 2.4.0.rc3.8.gfb3e7d5