Skip to content

iommu series

Benjamin Herrenschmidt qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 48 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Better support for dma_addr_t variablesdma.h hw/qdev-dma.h+13 -07 replies
2/13Implement cpu_physical_memory_set()cpu-common.h exec.c+16 -07 replies
3/13iommu: Add universal DMA helper functionsdma.h hw/pci.h qemu-common.h+113 -911 replies
4/13usb-ohci: Use universal DMA helper functionshw/usb/hcd-ohci.c+51 -429 replies
5/13iommu: Make sglists and dma_bdrv helpers use new universal DMA helpersdma-helpers.c dma.h hw/ide/ahci.c +2 more+19 -172 replies
6/13ide/ahci: Use universal DMA helper functionshw/ide/ahci.c hw/ide/ahci.h hw/ide/ich.c+23 -160 replies
7/13usb: Convert usb_packet_{map, unmap} to universal DMA helpershw/usb.h hw/usb/hcd-ehci.c hw/usb/hcd-uhci.c +1 more+15 -148 replies
8/13iommu: Introduce IOMMU emulation infrastructuredma-helpers.c dma.h hw/qdev-dma.h+250 -270 replies
9/13iommu: Add facility to cancel in-use dma memory mapsdma-helpers.c dma.h+47 -253 replies
10/13pseries: Convert sPAPR TCEs to use generic IOMMU infrastructurehw/ppc/Makefile.objs hw/spapr.c hw/spapr.h +7 more+369 -3430 replies
11/13iommu: Allow PCI to use IOMMU infrastructurehw/pci.c hw/pci.h hw/pci_internals.h+18 -20 replies
12/13pseries: Implement IOMMU and DMA for PAPR PCI deviceshw/spapr.h hw/spapr_iommu.c hw/spapr_pci.c +1 more+39 -180 replies
13/13Add a memory barrier to DMA functionsdma.h+52 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/13] iommu series

This is a rebase of the iommu series and the barrier patch together on top of current qemu.

As for our discussions about doing things with Memory Regions etc I eventually came to the conclusion that we should just apply this first :-)

My reasons (other than it makes my life much easier which it does) are that:

- We already have PCI DMA accessors, so devices using those
will be unaffected by further changes

- The few devices that are modified in this series to use the
DMA accessors directly are ... few, and need to do it essentially because they either deal with multiple bus types (AHCI, EHCI,...) or because they are in a separate layer (bdev). Fixing them to use some other interfaces would be easy (they are few)) and might be unnecessary as well as we might want (or can) easily keep an object of type "DMAContext" to represent the DMA capabilities of a device as the head of the chain of MemoryRegions in a future more flexible design.

- It provides a good spot to stick our memory barrier

- It gives us something working now for 1.2, I know that at least
freescale powerpc and a number of ARM folks are waiting for it.

Cheers,
Ben.