Use it when troubleshooting PCI passthrough, SR-IOV/direct assignment prerequisites, DMA isolation or the difference between CPU and device virtualization.
IOMMU · Virtualization Fundamentals
IOMMU is the I/O-side analogue of memory address translation for devices: it maps device-visible DMA addresses to permitted physical memory and can provide interrupt/remapping isolation depending on platform support.
1. The IOMMU remaps device DMA so devices can be safely assigned to VMs.
2. Enable in firmware (VT-d/AMD-Vi) and kernel (intel_iommu=on).
3. Devices in one IOMMU group must be assigned together.
4. Needed for PCI passthrough and SR-IOV.
5. Check group membership before passthrough.
firmware IOMMU on → kernel enables → IOMMU groups → device assigned to VM
Validate device topology/grouping and platform-specific assignment requirements next.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show the device is safe/supported for assignment or that the guest driver will operate correctly.
Next check: Validate device topology/grouping and platform-specific assignment requirements next.
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
PCI device/DMA request → IOMMU mapping/remapping → host physical memory/interrupt → VM/device owner
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.
- IOMMU is not the same as VT-x/AMD-V CPU virtualization.
- Having an IOMMU does not mean every PCI device can be safely assigned to a VM.
- Isolation also depends on platform topology, IOMMU groups/remapping capabilities, firmware and hypervisor policy.
- IOMMU enablement can matter for security features even when no device is directly assigned.
dmesg | grep -i -e DMAR -e IOMMU -e AMD-Vi— IOMMU initialisedls /sys/kernel/iommu_groups/ | wc -l— IOMMU groups existcat /proc/cmdline— intel_iommu=on / iommu=pt
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
IOMMU enabled shows remapping infrastructure exists, but it does not show a particular device is isolated, assignable or supported.
Intel VT-d and AMD-Vi are vendor-specific IOMMU implementations/families. PCI passthrough and SR-IOV depth belongs later in Virtualization.
Enabling the IOMMU
| Platform | Setting |
|---|---|
| Intel firmware | VT-d |
| AMD firmware | IOMMU / AMD-Vi |
| Linux kernel | intel_iommu=on (default on in recent kernels for some distros) or amd_iommu=on; add iommu=pt for passthrough-only mapping |
| ESXi / Hyper-V | Enabled automatically when firmware supports it |
Check with dmesg | grep -e DMAR -e IOMMU and find /sys/kernel/iommu_groups/ -type l.
In depth
An IOMMU translates and restricts DMA from devices, the same way the MMU does for CPU memory access. It is what makes device passthrough safe: a device assigned to a VM can only DMA into that VM's memory, and interrupts are remapped to the right guest.
# kernel command line
intel_iommu=on iommu=pt # Intel (iommu=pt: passthrough mode for host devices)
amd_iommu=on # AMD (usually on by default)
dmesg | grep -iE 'DMAR|IOMMU|AMD-Vi'
ls /sys/kernel/iommu_groups/
The IOMMU also protects the host from malicious or buggy DMA (e.g. Thunderbolt devices) even without VMs.
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 Virtualization Fundamentals → IOMMU. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtualization Fundamentals → IOMMU reference map
Fast virtualization boundaries for Virtualization Fundamentals → IOMMU.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| DMA | Device access to memory | Needs isolation in shared host |
| IOMMU | Translates/restricts DMA | Platform/topology dependent |
| IOMMU group/domain | Isolation boundary used by software | May include multiple devices |
| Device passthrough | Assigns device/function to VM | Requires more than IOMMU present |