Pcornel
Virtualization · Virtualization Fundamentals

IOMMU

Cheat sheet · https://pcornel.dk/topic.php?topic=3410

Back to the Topic

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 initialised
  • ls /sys/kernel/iommu_groups/ | wc -l — IOMMU groups exist
  • cat /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

BoundaryMeaningEvidence limit
DMADevice access to memoryNeeds isolation in shared host
IOMMUTranslates/restricts DMAPlatform/topology dependent
IOMMU group/domainIsolation boundary used by softwareMay include multiple devices
Device passthroughAssigns device/function to VMRequires 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

Confirmation

Confirm action

Continue?