Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

CPU Virtualization

Direct answer

CPU virtualization lets many VMs share physical cores: the hypervisor schedules vCPUs onto cores using hardware extensions (Intel VT-x, AMD-V), and settings like overcommit, pinning and NUMA placement decide how well they perform.

When to use this

Use this when a VM is slow on CPU, when sizing vCPUs, or when choosing overcommit, pinning, NUMA or CPU model settings for a host or cluster.

First 30 seconds

1. CPU virtualization: vCPUs scheduled onto pCPUs.

2. Contention shows as ready/steal.

3. Right-size vCPUs.

4. Use pinning only when needed.

5. CPU model affects migration.

Operational verification

vCPU threads → scheduler → physical cores

Context & applicabilityCommon mistakes · platform/version boundaries
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 VM is slow on CPU, when sizing vCPUs, or when choosing overcommit, pinning, NUMA or CPU model settings …
What next?3 suggested next steps
Child topics (this level)11
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.

3 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 Effective-state and workload closure Verify boundary

Local intent: CPU Virtualization reference area for virtualization architecture, operation and troubleshooting.

Step 2 Branching troubleshooting Narrow the fault

Path: Virtualization → CPU Virtualization. Local intent: CPU Virtualization reference area for virtualization architecture, operation and troubleshooting.

Step 3 Known-good and broken paths Narrow the fault

Field map: Correlate VM UUID/name, guest device, virtual controller/vNIC/vDisk, hypervisor object/state, host resource/path/uplink/datastore identifier, queue/latency/contention counters and guest-visible result.

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
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic vCPU Scheduling

vCPU scheduling is how the hypervisor places virtual CPUs onto physical cores over time.

Subtopic CPU Ready

CPU ready (steal time in Linux guests) is the time a vCPU was ready to run but waited for a physical core.

Subtopic CPU Overcommit

CPU overcommit assigns more vCPUs than there are physical cores, relying on VMs not all being busy at once.

Subtopic CPU Affinity

CPU affinity restricts which physical cores a VM's vCPUs may run on.

Subtopic CPU Pinning

CPU pinning maps each vCPU to a fixed physical core (for example virsh vcpupin or a Proxmox affinity setting) to give latency-sensitive or NUMA-aware workloads predictable performance, at the cost of flexibility and density.

Subtopic NUMA

NUMA (non-uniform memory access) splits a host into nodes, each with its own cores and local memory.

Subtopic vNUMA

vNUMA presents a NUMA topology inside the VM that mirrors the host's nodes, so a large guest OS and its applications can place threads and memory locally.

Subtopic CPU Compatibility

CPU compatibility determines whether a VM can live-migrate between hosts: the destination must support every CPU feature the VM was started with, which is why clusters use EVC (vSphere), processor compatibility mode (Hyper-V) or a common CPU model (KVM).

Subtopic CPU Passthrough

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.

Subtopic Host CPU Model

The host CPU model setting decides which CPU the guest sees: a generic or baseline model (for example x86-64-v2 or an EVC level) maximizes migration compatibility, while host-model or host-passthrough exposes more features and speed.

Subtopic CPU Troubleshooting

Troubleshoot VM CPU problems by comparing guest CPU usage with host-side ready/steal time, co-stop and host load: high ready means contention, high guest usage with low ready means the VM itself needs more or faster CPU.

Key points
  • High guest CPU ≠ host contention; check ready/steal time.
  • More vCPUs ≠ faster VM; oversizing raises scheduling wait.
  • CPU model choice affects both features and live migration.
Key checks
  • virsh vcpuinfo <vm> — vCPU placement
  • top (st column) in guest — steal time
  • esxtop — %RDY on ESXi
ReferenceWhy it matters1 section · depth on demand

Internals and state

Local intent: CPU Virtualization reference area for virtualization architecture, operation and troubleshooting.

ReferenceHow it works2 sections · depth on demand

How it works

CPU Virtualization — execution path and state semantics. vCPU execution depends on guest runnable state, hypervisor scheduling, physical CPU availability, NUMA locality and contention/steal or ready time.

State

Anchor the same VM/guest operation from virtual device identity through hypervisor ownership to the exact physical CPU, memory, network or storage resource.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

CPU virtualization maps vCPUs to physical cores through the hypervisor scheduler. Each vCPU is a schedulable thread or world; a vCPU that wants to run but has no free core waits — measured as CPU ready (VMware), steal time (Linux guests) or wait time (Hyper-V).

MetricWhereRough concern level
CPU ready %esxtop %RDY per vCPU> 5 % per vCPU
Co-stop %esxtop %CSTP> 3 %
Steal timeguest top st, vmstat> 5–10 %
Hyper-V CPU wait time per dispatchperfmon Hyper-V Hypervisor Virtual ProcessorRising trend
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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. Documentation verification only; this is not observed lab or production Evidence.

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

Confirm action

Continue?