CPU Virtualization
Cheat sheet · https://pcornel.dk/topic.php?topic=3407
Answer
CPU virtualization maps guest vCPU execution onto physical logical processors. Modern x86 platforms use Intel VT-x or AMD-V plus supporting memory-virtualization features so guest kernels can execute efficiently under hypervisor control.
Remember
- vCPU is a schedulable virtual processor context, not a permanently dedicated physical core.
- Intel VT-x and AMD-V provide CPU virtualization capabilities; IOMMU technologies address I/O/DMA remapping.
- More configured vCPUs do not automatically create more compute throughput.
- Nested virtualization requires virtualization extensions to be virtualized/exposed to the inner guest.
First checks
grep -o -E 'vmx|svm|ept|npt' /proc/cpuinfo | sort -u— VT and SLAT flagsvirsh capabilities | grep -A3 '<cpu>'— host CPU model libvirt seesGet-VMProcessor <vm>— Hyper-V vCPU settings
Verify in this order
guest instruction → VT-x/AMD-V → VM exit for privileged ops → hypervisor handles
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.
Virtualization Fundamentals → CPU Virtualization reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| pCPU/logical CPU | Physical execution resource | Finite host capacity |
| vCPU | Guest-visible CPU context | Scheduled, not necessarily dedicated |
| VT-x/AMD-V | Privilege virtualization support | Not IOMMU |
| Scheduler | Maps runnable vCPUs to host CPUs | Can introduce wait/ready time |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3407