Pcornel
Virtualization · KVM / QEMU

VirtIO

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

Back to the Topic

Answer

A VirtIO frontend driver in the guest communicates through a transport to a device/backend implemented by QEMU, the host kernel via vhost, or an external vhost-user process.

Remember

  • VirtIO device configured ≠ guest driver loaded.
  • VirtIO link/device visible ≠ backend path healthy.
  • vhost acceleration ≠ end-to-end application acceleration.
  • VirtIO is a device interface family, not a hypervisor by itself.

First checks

  • lspci | grep -i virtio — guest virtio devices
  • lsmod | grep virtio — guest drivers
  • virsh dumpxml <vm> | grep -E "model type='virtio'|bus='virtio'" — host config

Verify in this order

guest virtio driver → virtqueues → QEMU/vhost → host

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

KVM / QEMU → VirtIO reference map

BoundaryWhat to verifyEvidence limit
Definition/configExpected KVM / QEMU → VirtIO definition or configuration is presentConfigured state does not prove runtime behavior
RuntimeRelevant KVM/QEMU/libvirt object or process is active without matching errorsRuntime state does not prove dependencies or guest outcome
DependencyHost CPU/memory, storage, network or device backend required by this path is healthyLocal success does not prove the next boundary
AcceptanceOriginal guest/application test succeeds after the change or observationRequired for end-to-end closure

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

Confirmation

Confirm action

Continue?