Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

CPU Passthrough

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

When to use this

Use this when a guest needs the host's exact CPU features, such as specific instructions or nested virtualization, on KVM or Proxmox.

First 30 seconds

1. CPU passthrough (host mode) exposes all host CPU features.

2. Best performance.

3. Live migration only between identical CPUs.

4. Use in homogeneous clusters or single hosts.

5. Different from PCI passthrough.

Operational verification

host CPU features → passed to guest

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Using host passthrough in mixed-CPU clusters, breaking live migration.
  • Guests detecting CPU features that later disappear after migration (crashes).
  • Not checking licensing that counts physical cores.
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 a guest needs the host's exact CPU features, such as specific instructions or nested virtualization, on K…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
grep -o -E 'avx512[a-z]*|aes|avx2' /proc/cpuinfo | sort -u     # in the guest

The guest should show the same CPU flags as the host.

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
  • host-passthrough breaks migration to different CPUs.
  • Guest sees host microcode quirks too.
  • Use host-model when you need some portability.
Key checks
  • qm set <vmid> --cpu host — expose host CPU (Proxmox)
  • virsh dumpxml <vm> | grep host-passthrough — libvirt passthrough
  • grep -c avx2 /proc/cpuinfo — guest sees host features
ReferenceWhy it matters1 section · depth on demand

Trade-offs

host-passthroughNamed/baseline model
PerformanceBest, all CPU featuresSlightly lower
Live migrationOnly to identical CPUsAcross mixed CPU generations
Nested virtualisationWorksMay need extra flags

Proxmox default CPU type is x86-64-v2-AES; choose host only in homogeneous clusters or for single hosts.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

CPU passthrough (host CPU type, host-passthrough) exposes the exact host CPU model and flags to the guest: best performance and access to every instruction (AVX-512, AMX, newest crypto), but migration only to identical CPUs and microcode.

Use it for single-host workloads, HPC, nested virtualization labs or when software checks for specific CPU features; use a named baseline model in clusters.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration

# libvirt
<cpu mode='host-passthrough' check='none' migratable='on'/>
# Proxmox
qm set 101 --cpu host

Documented example, not captured output. Live migration then requires identical CPUs and microcode on all hosts.

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 CPU Virtualization → CPU Passthrough. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://libvirt.org/docs.html · confidence 94%
Confirmation

Confirm action

Continue?