Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

IOMMU Groups

Direct 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.

When to use this

Use this when the device you want to pass through shares an IOMMU group with others.

First 30 seconds

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.

Operational verification

PCIe topology + ACS → IOMMU groups

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Scope / prerequisiteUse this when the device you want to pass through shares an IOMMU group with others.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points
  • Whole group goes to one VM.
  • Slot choice changes grouping.
  • ACS override weakens isolation.
Key checks
  • for g in /sys/kernel/iommu_groups/*; do echo $g; ls $g/devices; done — devices per group
  • lspci -s <bdf> — identify device
  • dmesg | 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

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%
Confirmation

Confirm action

Continue?