From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDVnj-0000xu-LJ for qemu-devel@nongnu.org; Fri, 10 Jul 2015 06:45:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDVnf-00067a-AU for qemu-devel@nongnu.org; Fri, 10 Jul 2015 06:45:03 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:34491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDVne-00066x-MD for qemu-devel@nongnu.org; Fri, 10 Jul 2015 06:44:59 -0400 Received: from /spool/local by e23smtp09.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 10 Jul 2015 20:44:54 +1000 From: Alexey Kardashevskiy Date: Fri, 10 Jul 2015 20:43:43 +1000 Message-Id: <1436525028-23963-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH qemu 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, 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. Regarding 1/5, there is a question - in reality DMA windows are always a lot bigger than a single 4K page and aligned to 32/64MB, may be only use there qemu_real_host_page_mask? Please comment. 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 | 164 ++++++++++++++++++++++++++++-------------- hw/vfio/pci.c | 30 ++++---- include/hw/vfio/vfio-common.h | 1 + trace-events | 2 + 4 files changed, 129 insertions(+), 68 deletions(-) -- 2.4.0.rc3.8.gfb3e7d5