Pcornel
Virtualization

PCI & Device Passthrough

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

Back to the Topic

Answer

PCI and device passthrough give a VM direct access to a physical device — GPU, NIC, NVMe or USB controller — through the IOMMU, bypassing emulation for near-native performance at the cost of live migration and sharing.

Remember

  • Passthrough usually blocks live migration and snapshots.
  • The whole IOMMU group goes to the VM.
  • Host driver must release the device first.

First checks

  • lspci -nnk — devices and bound drivers
  • find /sys/kernel/iommu_groups/ -type l — IOMMU groups
  • Get-VMAssignableDevice — Hyper-V DDA

Verify in this order

device → IOMMU → VFIO/DDA → guest driver

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=3542

Confirmation

Confirm action

Continue?