Pcornel
Virtualization · VM Hardware › Virtual Devices

GPU

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

Back to the Topic

Answer

A guest GPU may be an emulated/synthetic display device, a mediated virtual GPU or a passed-through physical device. These models have different driver, isolation, migration and performance characteristics.

Remember

  • A guest display adapter is not proof of hardware-accelerated GPU access.
  • vGPU/mediated GPU and full passthrough are different ownership models.
  • Driver compatibility exists at both host/platform and guest layers.
  • Passthrough or specialized GPU modes can restrict migration/snapshots depending on platform.

First checks

  • nvidia-smi — guest/host GPU visible
  • lspci -nnk | grep -A3 -i vga — GPU and driver
  • mdevctl list — mediated/vGPU devices

Verify in this order

GPU → passthrough/mdev → 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.

VM Hardware → Virtual Devices → GPU reference map

BoundaryMeaningEvidence limit
Virtual displayBasic synthetic/emulated graphicsMay lack acceleration
Mediated/vGPUShared physical GPU resourcesPlatform-specific
PassthroughDedicated physical function/deviceOwnership/mobility constraints
Guest workloadGraphics/compute API useFunctional proof

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3475

Confirmation

Confirm action

Continue?