Use this when the device you want to pass through shares an IOMMU group with others.
IOMMU Groups
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.
1. An IOMMU group is the smallest isolatable set of devices.
2. All devices in a group must go to the same VM (except bridges).
3. Different slots may have better grouping.
4. ACS override weakens isolation — avoid in production.
5. Firmware updates can change groups.
PCIe topology + ACS → IOMMU groups
Context & applicabilityCommon mistakes · platform/version boundaries
- Passing only one function of a multi-function device (e.g. GPU without its audio function).
- Using slots wired through the chipset, which group many devices together.
- Changing BIOS settings that reorder groups after setup.
Operational reference
Fast context before you go deeper.
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.
- Whole group goes to one VM.
- Slot choice changes grouping.
- ACS override weakens isolation.
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
ReferenceWhy it matters1 section · depth on demand
Listing IOMMU groups
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'Group %s: ' "$n"; lspci -nns "${d##*/}"
done
Documented example, not captured output. If the device shares a group with others, move it to another slot (CPU-attached slots usually have better isolation). The ACS override patch splits groups but weakens isolation — avoid in production.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
An IOMMU group is the smallest set of devices the IOMMU can isolate from each other. All devices in a group must be assigned to the same VM (or left unused); bridges and root ports are exceptions handled by VFIO.
for d in /sys/kernel/iommu_groups/*/devices/*; do g=${d#*/iommu_groups/}; g=${g%%/*}; printf 'group %s: ' $g; lspci -nns ${d##*/}; done | sort -V
Bad grouping (GPU sharing a group with SATA controller or NIC) comes from platform topology and missing ACS support. Fixes: move the card to a CPU-attached slot, BIOS update, or the ACS override patch — which breaks the isolation guarantee and is not for production.
ACS override
When devices share a group because the platform lacks PCIe ACS, the pcie_acs_override kernel patch can split groups. It weakens isolation between devices and is not suitable for multi-tenant hosts. Prefer slots wired to the CPU or a board/server with proper ACS support.
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 Groups. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/driver-api/vfio.html · confidence 94%