Skip to content

RFC stackable dma_ops for x86

Joerg Roedel kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 34 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9x86/iommu: add necessary types for stackable dma_opsinclude/asm-x86/dma-mapping.h+26 -00 replies
2/9x86/iommu: add stackable dma_ops registration interfacearch/x86/kernel/pci-dma.c include/asm-x86/dma-mapping.h+34 -00 replies
3/9x86/iommu: change PCI-NOMMU to use dma_ops register interfacearch/x86/kernel/pci-nommu.c+12 -00 replies
4/9x86/iommu: change SWIOTLB to use dma_ops register interfacearch/x86/kernel/pci-dma.c arch/x86/kernel/pci-swiotlb_64.c include/asm-x86/swiotlb.h+21 -20 replies
5/9x86/iommu: change GART to use dma_ops register interfacearch/x86/kernel/pci-gart_64.c+9 -00 replies
6/9x86/iommu: change Calgary to use dma_ops register interfacearch/x86/kernel/pci-calgary_64.c+11 -106 replies
7/9x86/iommu: change AMD IOMMU to use dma_ops register interfacearch/x86/kernel/amd_iommu.c+3 -20 replies
8/9x86/iommu: change Intel IOMMU to use dma_ops register interfacedrivers/pci/intel-iommu.c+8 -00 replies
9/9x86/iommu: use dma_ops_list in get_dma_opsarch/x86/kernel/pci-dma.c include/asm-x86/device.h include/asm-x86/dma-mapping.h+36 -1018 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/9][RFC] stackable dma_ops for x86

Hi,

this patch series implements stackable dma_ops on x86. This is useful to be able to fall back to a different dma_ops implementation if one can not handle a particular device (as necessary for example with paravirtualized device passthrough or if a hardware IOMMU only handles a subset of available devices).
The patch series is split to change the different iommu implementations in different patches. This should make it easier for the specific maintainers to review the part that changes their code.

Thanks for review and comments,

Joerg

diffstat:

 arch/x86/kernel/amd_iommu.c      |    5 ++-
 arch/x86/kernel/pci-calgary_64.c |   21 ++++++------
 arch/x86/kernel/pci-dma.c        |   63 +++++++++++++++++++++++++++++++++++++-
 arch/x86/kernel/pci-gart_64.c    |    9 +++++
 arch/x86/kernel/pci-nommu.c      |   12 +++++++
 arch/x86/kernel/pci-swiotlb_64.c |   16 +++++++++-
 drivers/pci/intel-iommu.c        |    8 +++++
 include/asm-x86/device.h         |    6 ++--
 include/asm-x86/dma-mapping.h    |   43 +++++++++++++++++++++----
 include/asm-x86/swiotlb.h        |    1 +
 10 files changed, 160 insertions(+), 24 deletions(-)