Use this when passthrough requires the IOMMU or when DMA isolation errors appear.
IOMMU · PCI & Device Passthrough
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).
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.
firmware → kernel IOMMU → groups
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- Enable in firmware and kernel.
- Interrupt remapping matters.
- No IOMMU = no safe passthrough.
dmesg | grep -e DMAR -e AMD-Vi— IOMMU oncat /proc/cmdline— intel_iommu=on iommu=ptls /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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%