From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH5nF-0006b1-FE for qemu-devel@nongnu.org; Mon, 20 Jul 2015 03:47:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZH5nA-0007kH-5H for qemu-devel@nongnu.org; Mon, 20 Jul 2015 03:47:21 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:53390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH5n9-0007jQ-J0 for qemu-devel@nongnu.org; Mon, 20 Jul 2015 03:47:16 -0400 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Jul 2015 17:47:13 +1000 From: Alexey Kardashevskiy Date: Mon, 20 Jul 2015 17:46:06 +1000 Message-Id: <1437378370-6128-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [RFC PATCH qemu 0/4] 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: Peter Crosthwaite , Alexey Kardashevskiy , Michael Roth , Alex Williamson , qemu-ppc@nongnu.org, David Gibson Yet another try, reworked the whole patchset. 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. Please comment. Thanks! Changes: v4: * have 2 listeners now - "iommu" and "prereg" * removed iommu_data * many smaller changes v3: * removed incorrect "vfio: Skip PCI BARs in memory listener" * removed page size changes from quirks as they did not completely fix the crashes happening on POWER8 (only total removal helps there) * added "memory: Add reporting of supported page sizes" Alexey Kardashevskiy (4): memory: Add reporting of supported page sizes vfio: Generalize IOMMU memory listener vfio: Use different page size for different IOMMU types vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering) hw/ppc/spapr_iommu.c | 8 ++ hw/vfio/common.c | 217 +++++++++++++++++++++++++++++++++--------- include/exec/memory.h | 11 +++ include/hw/vfio/vfio-common.h | 26 ++--- memory.c | 9 ++ trace-events | 2 + 6 files changed, 214 insertions(+), 59 deletions(-) -- 2.4.0.rc3.8.gfb3e7d5