[Qemu-devel] [PATCH qemu v9 0/2] memory/iommu: QOM'fy IOMMU MemoryRegion

Alexey Kardashevskiy posted 2 patches 6 years, 9 months ago
Failed in applying to current master (apply log)
Test FreeBSD passed
Test checkpatch failed
Test docker passed
Test s390x passed
hw/i386/amd_iommu.h           |   5 +-
hw/s390x/s390-pci-bus.h       |   3 +-
include/exec/memory.h         |  94 +++++++++++++++++++++++++----------
include/hw/i386/intel_iommu.h |   5 +-
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           |  33 +++++++++---
hw/i386/intel_iommu.c         |  42 +++++++++++-----
hw/mips/mips_jazz.c           |   2 +-
hw/pci-host/apb.c             |  29 ++++++++---
hw/ppc/spapr_iommu.c          |  42 ++++++++++------
hw/s390x/s390-pci-bus.c       |  29 +++++++----
hw/s390x/s390-pci-inst.c      |  11 ++--
hw/vfio/common.c              |  12 +++--
hw/vfio/spapr.c               |   3 +-
memory.c                      | 113 ++++++++++++++++++++++++++++--------------
21 files changed, 355 insertions(+), 159 deletions(-)
[Qemu-devel] [PATCH qemu v9 0/2] memory/iommu: QOM'fy IOMMU MemoryRegion
Posted by Alexey Kardashevskiy 6 years, 9 months ago
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:
v9:
* reworked 2/2 to follow the existing function naming style

v8:
* now 2 patches

This is based on sha1
b113658675 Peter Maydell "Merge remote-tracking branch 'remotes/borntraeger/tags/s390x-20170706' into staging".

Please comment. Thanks.



Alexey Kardashevskiy (2):
  memory/iommu: QOM'fy IOMMU MemoryRegion
  memory/iommu: introduce IOMMUMemoryRegionClass

 hw/i386/amd_iommu.h           |   5 +-
 hw/s390x/s390-pci-bus.h       |   3 +-
 include/exec/memory.h         |  94 +++++++++++++++++++++++++----------
 include/hw/i386/intel_iommu.h |   5 +-
 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           |  33 +++++++++---
 hw/i386/intel_iommu.c         |  42 +++++++++++-----
 hw/mips/mips_jazz.c           |   2 +-
 hw/pci-host/apb.c             |  29 ++++++++---
 hw/ppc/spapr_iommu.c          |  42 ++++++++++------
 hw/s390x/s390-pci-bus.c       |  29 +++++++----
 hw/s390x/s390-pci-inst.c      |  11 ++--
 hw/vfio/common.c              |  12 +++--
 hw/vfio/spapr.c               |   3 +-
 memory.c                      | 113 ++++++++++++++++++++++++++++--------------
 21 files changed, 355 insertions(+), 159 deletions(-)

-- 
2.11.0


Re: [Qemu-devel] [PATCH qemu v9 0/2] memory/iommu: QOM'fy IOMMU MemoryRegion
Posted by Cornelia Huck 6 years, 9 months ago
On Tue, 11 Jul 2017 13:56:18 +1000
Alexey Kardashevskiy <aik@ozlabs.ru> wrote:

> 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:
> v9:
> * reworked 2/2 to follow the existing function naming style
> 
> v8:
> * now 2 patches
> 
> This is based on sha1
> b113658675 Peter Maydell "Merge remote-tracking branch 'remotes/borntraeger/tags/s390x-20170706' into staging".
> 
> Please comment. Thanks.

While the patches seem sane to me at a glance, I haven't done a
in-depth review. But for the s390 parts:

Acked-by: Cornelia Huck <cohuck@redhat.com>

for both patches.

> 
> 
> 
> Alexey Kardashevskiy (2):
>   memory/iommu: QOM'fy IOMMU MemoryRegion
>   memory/iommu: introduce IOMMUMemoryRegionClass
> 
>  hw/i386/amd_iommu.h           |   5 +-
>  hw/s390x/s390-pci-bus.h       |   3 +-
>  include/exec/memory.h         |  94 +++++++++++++++++++++++++----------
>  include/hw/i386/intel_iommu.h |   5 +-
>  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           |  33 +++++++++---
>  hw/i386/intel_iommu.c         |  42 +++++++++++-----
>  hw/mips/mips_jazz.c           |   2 +-
>  hw/pci-host/apb.c             |  29 ++++++++---
>  hw/ppc/spapr_iommu.c          |  42 ++++++++++------
>  hw/s390x/s390-pci-bus.c       |  29 +++++++----
>  hw/s390x/s390-pci-inst.c      |  11 ++--
>  hw/vfio/common.c              |  12 +++--
>  hw/vfio/spapr.c               |   3 +-
>  memory.c                      | 113 ++++++++++++++++++++++++++++--------------
>  21 files changed, 355 insertions(+), 159 deletions(-)
>