CPU Passthrough
Cheat sheet · https://pcornel.dk/topic.php?topic=3485
Answer
CPU passthrough (host-passthrough in KVM) exposes the host's exact CPU model and features to the guest for maximum performance and instruction support, but ties live migration to hosts with identical CPUs.
Remember
- host-passthrough breaks migration to different CPUs.
- Guest sees host microcode quirks too.
- Use host-model when you need some portability.
First checks
qm set <vmid> --cpu host— expose host CPU (Proxmox)virsh dumpxml <vm> | grep host-passthrough— libvirt passthroughgrep -c avx2 /proc/cpuinfo— guest sees host features
Verify in this order
host CPU features → passed to guest
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=3485