Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

IOMMU · PCI & Device Passthrough

Direct answer

The IOMMU (Intel VT-d, AMD-Vi) translates and isolates device DMA so a passed-through device can only access its VM's memory. Enable it in firmware and on the kernel command line (intel_iommu=on or amd_iommu=on).

When to use this

Use this when passthrough requires the IOMMU or when DMA isolation errors appear.

First 30 seconds

1. IOMMU isolates device DMA.

2. Enable in firmware and kernel.

3. Interrupt remapping needed for safety.

4. Check groups.

5. iommu=pt for host performance.

Operational verification

firmware → kernel IOMMU → groups

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse this when passthrough requires the IOMMU or when DMA isolation errors appear.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

Exercise one safe negative or boundary case implied by unsupported CPU flag, NUMA mismatch, overcommit pressure, ballooning surprise, IOMMU group conflict, driver mismatch, hot-add limitation or device reset failure.

Step 2 Common mistakes Narrow the fault
  • IOMMU disabled in firmware or kernel parameters.
Step 3 Where it fails Narrow the fault

Walk host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use and stop where observed state diverges.

Common failure classes are unsupported CPU flag, NUMA mismatch, overcommit pressure, ballooning surprise, IOMMU group conflict, driver mismatch, hot-add limitation or device reset failure.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Enable in firmware and kernel.
  • Interrupt remapping matters.
  • No IOMMU = no safe passthrough.
Key checks
  • dmesg | grep -e DMAR -e AMD-Vi — IOMMU on
  • cat /proc/cmdline — intel_iommu=on iommu=pt
  • ls /sys/kernel/iommu_groups/ | wc -l — groups count
ReferenceWhy it matters1 section · depth on demand

In depth

For passthrough, the IOMMU must be active and reported by the kernel; without it VFIO refuses to assign devices.

dmesg | grep -iE 'DMAR: IOMMU enabled|AMD-Vi: .*enabled|iommu'
cat /proc/cmdline
find /sys/kernel/iommu_groups/ -type l | wc -l     # 0 = no IOMMU

iommu=pt keeps host devices in passthrough (identity) mode for performance while still isolating VFIO devices. Interrupt remapping should also be enabled; without it, some kernels need allow_unsafe_interrupts, which weakens isolation.

ReferenceImportant terms & boundaries1 section · depth on demand

Mechanics

Follow the path in order: host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use.

Important negative cases include unsupported CPU flag, NUMA mismatch, overcommit pressure, ballooning surprise, IOMMU group conflict, driver mismatch, hot-add limitation or device reset failure.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

Authoritative/upstream documentation reviewed for bounded claims in PCI & Device Passthrough → IOMMU. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/driver-api/vfio.html · confidence 94%
Confirmation

Confirm action

Continue?