Skip to content

Memory/IOMMU patches, part 3: IOMMU implementation

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21memory: Introduce address_space_lookup_regionexec.c+7 -11 reply
2/21memory: move private types to exec.cexec.c include/exec/memory-internal.h+16 -151 reply
3/21exec: Allow unaligned address_space_rwexec.c+6 -61 reply
4/21exec: Resolve subpages in one step except for IOTLB fillscputlb.c exec.c include/exec/cputlb.h+42 -151 reply
5/21exec: Implement subpage_read/write via address_space_rwexec.c+47 -781 reply
6/21exec: return MemoryRegion from address_space_translateexec.c include/exec/memory.h+79 -791 reply
7/21Revert "memory: limit sections in the radix tree to the actual address space size"exec.c include/exec/memory.h+1 -152 replies
8/21Revert "s390x: reduce TARGET_PHYS_ADDR_SPACE_BITS to 62"target-s390x/cpu.h+1 -40 replies
9/21exec: reorganize mem_add to match Int128 versionexec.c+16 -231 reply
10/21memory: make section size a 128-bit integerexec.c hw/core/loader.c hw/display/exynos4210_fimd.c +10 more+71 -4612 replies
11/21memory: iommu supportexec.c include/exec/memory.h memory.c+111 -61 reply
12/21memory: Add iommu map/unmap notifiersinclude/exec/memory.h memory.c+50 -01 reply
13/21vfio: abort if an emulated iommu is usedhw/misc/vfio.c+2 -01 reply
14/21spapr: convert TCE API to use an opaque typehw/ppc/spapr_iommu.c hw/ppc/spapr_pci.c hw/ppc/spapr_vio.c +3 more+42 -480 replies
15/21spapr: make IOMMU translation go through IOMMUTLBEntryhw/ppc/spapr_iommu.c+35 -250 replies
16/21spapr: use memory core for iommu supporthw/ppc/spapr_iommu.c include/hw/ppc/spapr.h+28 -210 replies
17/21dma: eliminate old-style IOMMU supportdma-helpers.c exec.c hw/pci/pci.c +2 more+26 -2390 replies
18/21pci: use memory core for iommu supporthw/pci/pci.c hw/ppc/spapr_pci.c include/hw/pci-host/spapr.h +2 more+33 -310 replies
19/21spapr_vio: take care of creating our own AddressSpace/DMAContexthw/ppc/spapr_iommu.c hw/ppc/spapr_vio.c include/hw/ppc/spapr.h +1 more+13 -230 replies
20/21dma: eliminate DMAContextdma-helpers.c exec.c hw/dma/pl330.c +19 more+116 -1470 replies
21/21memory: give name to every AddressSpaceexec.c hw/pci/pci.c hw/ppc/spapr_pci.c +3 more+15 -140 replies

Reviews trailers per patch

17 of 21 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellDavid GibsonMichael S. TsirkinRichard Henderson
1/21R-b
2/21R-b
3/21R-b
4/21
5/21R-b
6/21R-b
7/21
8/21
9/21R-b
10/21
11/21R-b R-b
12/21R-b
13/21R-b R-b
14/21A-b
15/21A-b
16/21A-b
17/21R-b
18/21R-b
19/21A-b
20/21R-b
21/21R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/21] Memory/IOMMU patches, part 3: IOMMU implementation

This part includes Jan's subpage reorganization (needed to unify MMIO and PIO dispatch) and the implementation of IOMMU regions. Compared to previous submissions, there is full support for 64-bit-sized IOMMU regions, so I'm reverting the patches from part 1 that reduced the maximum size of sections to 62 bits.

Patches 1-10 are the new ones.

Alexey Kardashevskiy (1):
memory: give name to every AddressSpace

Avi Kivity (3):
memory: iommu support
vfio: abort if an emulated iommu is used
pci: use memory core for iommu support

David Gibson (1):
memory: Add iommu map/unmap notifiers

Jan Kiszka (4):
memory: Introduce address_space_lookup_region
exec: Allow unaligned address_space_rw
exec: Resolve subpages in one step except for IOTLB fills
exec: Implement subpage_read/write via address_space_rw

Paolo Bonzini (12):
memory: move private types to exec.c
exec: return MemoryRegion from address_space_translate Revert "memory: limit sections in the radix tree to the actual address
space size"
Revert "s390x: reduce TARGET_PHYS_ADDR_SPACE_BITS to 62"
exec: reorganize mem_add to match Int128 version
memory: make section size a 128-bit integer
spapr: convert TCE API to use an opaque type
spapr: make IOMMU translation go through IOMMUTLBEntry
spapr: use memory core for iommu support
dma: eliminate old-style IOMMU support
spapr_vio: take care of creating our own AddressSpace/DMAContext
dma: eliminate DMAContext

 cputlb.c                       |   4 +-
 dma-helpers.c                  | 190 +----------------
 exec.c                         | 456 ++++++++++++++++++++++-------------------
 hw/core/loader.c               |   2 +-
 hw/display/exynos4210_fimd.c   |   4 +-
 hw/display/framebuffer.c       |   3 +-
 hw/dma/pl330.c                 |   8 +-
 hw/ide/ahci.c                  |  18 +-
 hw/ide/ahci.h                  |   4 +-
 hw/ide/ich.c                   |   2 +-
 hw/ide/macio.c                 |   4 +-
 hw/misc/vfio.c                 |   6 +-
 hw/pci/pci.c                   |  44 ++--
 hw/ppc/spapr_iommu.c           | 119 ++++++-----
 hw/ppc/spapr_pci.c             |  16 +-
 hw/ppc/spapr_vio.c             |  13 +-
 hw/scsi/megasas.c              |   4 +-
 hw/scsi/virtio-scsi.c          |   2 +-
 hw/scsi/vmw_pvscsi.c           |   2 +-
 hw/sd/sdhci.c                  |  22 +-
 hw/usb/hcd-ehci-pci.c          |   4 +-
 hw/usb/hcd-ehci-sysbus.c       |   2 +-
 hw/usb/hcd-ehci.c              |  12 +-
 hw/usb/hcd-ehci.h              |   2 +-
 hw/usb/hcd-ohci.c              |  30 +--
 hw/usb/libhw.c                 |   4 +-
 hw/virtio/dataplane/hostmem.c  |   2 +-
 hw/virtio/vhost.c              |   4 +-
 hw/virtio/virtio-balloon.c     |   2 +-
 include/exec/cputlb.h          |   4 +
 include/exec/memory-internal.h |  15 --
 include/exec/memory.h          | 114 ++++++++++-
 include/hw/pci-host/spapr.h    |   3 +-
 include/hw/pci/pci.h           |  21 +-
 include/hw/pci/pci_bus.h       |   4 +-
 include/hw/ppc/spapr.h         |  12 +-
 include/hw/ppc/spapr_vio.h     |  21 +-
 include/qemu/int128.h          |  10 +
 include/sysemu/dma.h           | 144 ++++---------
 kvm-all.c                      |  23 ++-
 memory.c                       |  56 +++--
 target-s390x/cpu.h             |   5 +-
 xen-all.c                      |   6 +-
 43 files changed, 671 insertions(+), 752 deletions(-)
Signature · 1 line
1.8.1.4