Received: from eggs.gnu.org ([2001:4830:134:3::10]:57127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dL1v3-00024o-IX for qemu-devel@nongnu.org; Wed, 14 Jun 2017 02:36:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dL1v0-00031P-GL for qemu-devel@nongnu.org; Wed, 14 Jun 2017 02:36:45 -0400 From: Alexey Kardashevskiy Date: Wed, 14 Jun 2017 16:36:05 +1000 Message-Id: <20170614063607.47863-1-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH qemu v8 0/2] memory/iommu: QOM'fy IOMMU MemoryRegion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alex Williamson , Christian Borntraeger , Cornelia Huck , David Gibson , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Xu Here is a couple of patches to QOM'fy IOMMU memory regions. I have made them in order to proceed with in-kernel TCE stuff acceleration enablement which sort of depends on sPAPR IOMMU MR being QOM'ed. This is based on sha1 3f0602927b Peter Maydell "Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20170613' into staging". Please comment. Thanks. Changes: v8: * now 2 patches Alexey Kardashevskiy (2): memory/iommu: QOM'fy IOMMU MemoryRegion memory/iommu: introduce IOMMUMemoryRegionClass hw/i386/amd_iommu.h | 3 -- hw/s390x/s390-pci-bus.h | 2 +- include/exec/memory.h | 94 +++++++++++++++++++++++++---------- include/hw/i386/intel_iommu.h | 3 +- include/hw/mips/mips.h | 2 +- include/hw/ppc/spapr.h | 7 ++- include/hw/vfio/vfio-common.h | 2 +- include/qemu/typedefs.h | 1 + exec.c | 14 +++--- hw/alpha/typhoon.c | 31 +++++++++--- hw/dma/rc4030.c | 34 +++++++++---- hw/i386/amd_iommu.c | 35 ++++++++++--- hw/i386/intel_iommu.c | 44 +++++++++++----- hw/mips/mips_jazz.c | 2 +- hw/pci-host/apb.c | 29 ++++++++--- hw/ppc/spapr_iommu.c | 42 ++++++++++------ hw/s390x/s390-pci-bus.c | 31 ++++++++---- hw/s390x/s390-pci-inst.c | 11 ++-- hw/vfio/common.c | 12 +++-- hw/vfio/spapr.c | 3 +- memory.c | 113 ++++++++++++++++++++++++++++-------------- 21 files changed, 356 insertions(+), 159 deletions(-) -- 2.11.0