Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

Threads

Direct answer

Virtual threads describe the guest-visible relationship between logical processors and virtual cores. They are topology information and do not guarantee a direct mapping to host SMT sibling threads.

When to use this

Use it when guest topology, software licensing or performance analysis distinguishes cores from logical threads.

First 30 seconds

1. Threads per core exposes SMT to the guest.

2. Useful only when vCPUs are pinned to sibling threads.

3. Hyper-threads are not full cores — size accordingly.

4. SMT may be disabled for security.

5. Check host SMT state.

Operational verification

host SMT → guest threads → scheduler

Evidence · next step

Inspect host scheduler placement and benchmark the representative workload.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

It does not show mapping to host SMT siblings or a particular performance benefit.

Next check: Inspect host scheduler placement and benchmark the representative workload.

and state what the evidence does not show.

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 it when guest topology, software licensing or performance analysis distinguishes cores from logical threads.
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 Verification path Verify boundary

thread topology config → guest CPUID/topology → guest scheduler → hypervisor scheduler → host execution

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
  • Virtual thread topology can differ from host SMT topology.
  • Two guest threads in one virtual core are not proof they run on physical SMT siblings.
  • SMT exposure and scheduling policy are platform-dependent.
  • Total guest logical processors remain the primary execution count seen by the guest scheduler.
Key checks
  • lscpu | grep Thread — threads per core in guest
  • virsh capabilities | grep -A5 topology — host SMT
  • cat /sys/devices/system/cpu/smt/active — host SMT active
ReferenceHow it works1 section · depth on demand

How it works

How it works: vCPU execution depends on guest runnable state, hypervisor scheduling, physical CPU availability, NUMA locality and contention/steal or ready time.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

Guest thread enumeration shows the advertised logical topology, not physical sibling placement or SMT performance characteristics.

CPU scheduler placement and host SMT behavior belong to CPU Virtualization.

and state what the evidence does not show.

In depth

Threads per core expose SMT (hyper-threading) siblings to the guest. Most hypervisors present 1 thread per core by default; exposing SMT topology (threads=2) can help guest schedulers on pinned, latency-sensitive VMs where vCPUs map exactly to host sibling threads.

A host thread is not a full core: two busy siblings share one core's execution units, typically yielding 15–30 % more than one thread, not 100 %. Count physical cores, not threads, when sizing CPU-heavy workloads.

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 VM Hardware → vCPU → Threads. Documentation verification only; this is not observed lab or production Evidence.

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

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
virtual cpu threadsvm threads per corevirtual SMT
Embedded reference data

Quick lookup tables

VM Hardware → vCPU → Threads reference map

Fast VM-hardware boundaries for VM Hardware → vCPU → Threads.

BoundaryMeaningEvidence limit
Guest threadLogical processor relationshipTopology presentation
Host SMT threadPhysical logical processorSeparate placement question
CPUID topologyAdvertises hierarchyCan be virtualized
PerformanceWorkload dependentMust be measured
Confirmation

Confirm action

Continue?