Skip to content

Passthrough support for AMD-IOMMU (AMD-Vi)

Joerg Roedel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86/dma: Mark iommu_pass_through as __read_mostlyarch/x86/kernel/pci-dma.c+8 -10 replies
2/8x86/amd-iommu: Add core functions for pd allocation/freeingarch/x86/kernel/amd_iommu.c+32 -40 replies
3/8x86/amd-iommu: Add passthrough mode initialization functionsarch/x86/include/asm/amd_iommu.h arch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+69 -80 replies
4/8x86/amd-iommu: Fix device table write orderarch/x86/kernel/amd_iommu.c+2 -20 replies
5/8x86/amd-iommu: Align locking between attach_device and detach_devicearch/x86/kernel/amd_iommu.c+14 -50 replies
6/8x86/amd-iommu: Make sure a device is assigned in passthrough modearch/x86/kernel/amd_iommu.c+9 -00 replies
7/8x86/amd-iommu: Don't detach device from pt domain on driver unbindarch/x86/kernel/amd_iommu.c+2 -00 replies
8/8x86/amd-iommu: Initialize passthrough mode when requestedarch/x86/kernel/amd_iommu_init.c+7 -10 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/8] Passthrough support for AMD-IOMMU (AMD-Vi)

Hi,

this series of patches implement iommu=pt support for AMD IOMMU (AMD-Vi). If this option is passed on the kernel command line, the AMD-Vi driver will not register itself as the dma_ops backend and allows all devices unlimited access to main memory as long as no other kernel part (currently only KVM will do so) assigns the device to another domain using the IOMMU-API.

Joerg

Diffstat:

 arch/x86/include/asm/amd_iommu.h       |    1 +
 arch/x86/include/asm/amd_iommu_types.h |    4 +
 arch/x86/kernel/amd_iommu.c            |  140 +++++++++++++++++++++++++++----
 arch/x86/kernel/amd_iommu_init.c       |    8 ++-
 arch/x86/kernel/pci-dma.c              |    9 ++-
 5 files changed, 142 insertions(+), 20 deletions(-)

Shortlog:

Joerg Roedel (8):
x86/dma: Mark iommu_pass_through as __read_mostly x86/amd-iommu: Add core functions for pd allocation/freeing x86/amd-iommu: Add passthrough mode initialization functions x86/amd-iommu: Fix device table write order x86/amd-iommu: Align locking between attach_device and detach_device x86/amd-iommu: Make sure a device is assigned in passthrough mode x86/amd-iommu: Don't detach device from pt domain on driver unbind x86/amd-iommu: Initialize passthrough mode when requested