IOMMU
Cheat sheet · https://pcornel.dk/topic.php?topic=3410
Answer
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.
Remember
- 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.
First checks
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
Verify in this order
firmware IOMMU on → kernel enables → IOMMU groups → device assigned to VM
Where it usually breaks
First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.
Virtualization Fundamentals → IOMMU reference map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3410