Skip to content

IOMMU Infrastructure

Benjamin Herrenschmidt qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

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

This is a resend of the iommu series, mostly from Eduard and David with the following changes:

- Replaced the _zero functions with _set functions to
provide memset-like semantics and re-implemented in term of cpu_physical_memory_rw() with a small local buffer

- Removed the tracking of maps, instead added callbacks
for the iommu backend to optionally provide its own map and unmap callbacks (to do its own tracking and synchronization) with a default implementation based on using translate. We still add the optional "cancel" argument to map, it will be used by subsequent iommu backend implementations. The initial TCE implementation uses the default implementation. I removed David's previous "wait" mechanism.

- Removed the memory barrier patch for now, we'll discuss it
separately