IOMMU Groups
Cheat sheet · https://pcornel.dk/topic.php?topic=3546
Answer
IOMMU groups are the smallest sets of devices the IOMMU can isolate; all devices in a group must be passed to the same VM. Check them under /sys/kernel/iommu_groups and use slots wired directly to the CPU when groups are too large.
Remember
- Whole group goes to one VM.
- Slot choice changes grouping.
- ACS override weakens isolation.
First checks
for g in /sys/kernel/iommu_groups/*; do echo $g; ls $g/devices; done— devices per grouplspci -s <bdf>— identify devicedmesg | grep -i acs— ACS messages
Verify in this order
PCIe topology + ACS → IOMMU groups
Where it usually breaks
First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3546