Memory/IOMMU patches, part 3: IOMMU implementation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest21 patches 24 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | memory: Introduce address_space_lookup_regionexec.c | +7 | 1 reply | |
| 2/21 | memory: move private types to exec.cexec.c include/ | +16 | 1 reply | |
| 3/21 | exec: Allow unaligned address_space_rwexec.c | +6 | 1 reply | |
| 4/21 | exec: Resolve subpages in one step except for IOTLB fillscputlb.c exec.c include/ | +42 | 1 reply | |
| 5/21 | exec: Implement subpage_read/write via address_space_rwexec.c | +47 | 1 reply | |
| 6/21 | exec: return MemoryRegion from address_space_translateexec.c include/ | +79 | 1 reply | |
| 7/21 | Revert "memory: limit sections in the radix tree to the actual address space size"exec.c include/ | +1 | 2 replies | |
| 8/21 | Revert "s390x: reduce TARGET_PHYS_ADDR_SPACE_BITS to 62"target-s390x/ | +1 | 0 replies | |
| 9/21 | exec: reorganize mem_add to match Int128 versionexec.c | +16 | 1 reply | |
| 10/21 | memory: make section size a 128-bit integerexec.c hw/ hw/ +10 more | +71 | 12 replies | |
| 11/21 | memory: iommu supportexec.c include/ memory.c | +111 | 1 reply | |
| 12/21 | memory: Add iommu map/unmap notifiersinclude/ memory.c | +50 | 1 reply | |
| 13/21 | vfio: abort if an emulated iommu is usedhw/ | +2 | 1 reply | |
| 14/21 | spapr: convert TCE API to use an opaque typehw/ hw/ hw/ +3 more | +42 | 0 replies | |
| 15/21 | spapr: make IOMMU translation go through IOMMUTLBEntryhw/ | +35 | 0 replies | |
| 16/21 | spapr: use memory core for iommu supporthw/ include/ | +28 | 0 replies | |
| 17/21 | dma: eliminate old-style IOMMU supportdma-helpers.c exec.c hw/ +2 more | +26 | 0 replies | |
| 18/21 | pci: use memory core for iommu supporthw/ hw/ include/ +2 more | +33 | 0 replies | |
| 19/21 | spapr_vio: take care of creating our own AddressSpace/DMAContexthw/ hw/ include/ +1 more | +13 | 0 replies | |
| 20/21 | dma: eliminate DMAContextdma-helpers.c exec.c hw/ +19 more | +116 | 0 replies | |
| 21/21 | memory: give name to every AddressSpaceexec.c hw/ hw/ +3 more | +15 | 0 replies |
Reviews trailers per patch
17 of 21 patches have a Reviewed-by or Acked-by.
| Patch | Peter Maydell | David Gibson | Michael S. Tsirkin | Richard Henderson |
|---|---|---|---|---|
| 1/21 | R-b | |||
| 2/21 | R-b | |||
| 3/21 | R-b | |||
| 4/21 | ||||
| 5/21 | R-b | |||
| 6/21 | R-b | |||
| 7/21 | ||||
| 8/21 | ||||
| 9/21 | R-b | |||
| 10/21 | ||||
| 11/21 | R-b | R-b | ||
| 12/21 | R-b | |||
| 13/21 | R-b | R-b | ||
| 14/21 | A-b | |||
| 15/21 | A-b | |||
| 16/21 | A-b | |||
| 17/21 | R-b | |||
| 18/21 | R-b | |||
| 19/21 | A-b | |||
| 20/21 | R-b | |||
| 21/21 | R-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.
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