Use it when software requires a specific CPU feature or when comparing guest-visible capabilities across VM CPU models.
CPU Flags
CPU flags represent features such as instruction-set extensions or virtualization capabilities advertised to the guest. The hypervisor can often filter or synthesize a subset based on platform rules.
1. CPU flags expose features like AES-NI, AVX.
2. Missing flags slow crypto or break apps.
3. Add flags only if all hosts support them.
4. Security flags (md-clear, spec-ctrl) for mitigations.
5. Check in guest.
CPU model + flags → guest features
Test the dependent application and compare the feature baseline across target hosts.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show the application executes that feature path or that every migration target can provide it.
Next check: Test the dependent application and compare the feature baseline across target hosts.
and state what the evidence does not show.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
host capability → hypervisor CPU policy → guest CPU flags → OS/library → application path
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.
- A CPU flag is an advertised capability, not proof an application uses it.
- Flags can be masked for compatibility or security reasons.
- The host must ultimately support or safely virtualize the exposed behavior.
- Feature sets can affect migration compatibility.
grep -o -w -E 'aes|avx2|avx512f|sse4_2' /proc/cpuinfo | sort -u— guest feature flagsvirsh domcapabilities | grep -A20 host-model— host-model featuresqm config <vmid> | grep flags— extra flags (Proxmox)
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Guest-visible flag presence shows advertisement to the guest, not application use, safe migration or performance benefit.
CPU compatibility/host-model rules belong to CPU Virtualization.
and state what the evidence does not show.
In depth
CPU flags are individual features (e.g. aes, avx2, avx512f, pcid, md-clear, spec-ctrl) exposed or hidden per VM. Security mitigations depend on flags such as spec-ctrl, ssbd, md-clear reaching the guest.
grep -o -w -E 'aes|avx2|avx512f|pcid|md_clear|spec_ctrl' /proc/cpuinfo | sort -u # in guest
qm set 120 --cpu x86-64-v3,flags=+aes;+pcid
virsh capabilities | grep -A30 '<cpu>'
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VM Hardware → vCPU → CPU Flags. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%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.
Quick lookup tables
VM Hardware → vCPU → CPU Flags reference map
Fast VM-hardware boundaries for VM Hardware → vCPU → CPU Flags.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Host capability | Physical feature available | May be masked |
| VM CPU policy | Chooses exposed set | Compatibility boundary |
| Guest flag | Feature advertised | Not use proof |
| Application | Consumes feature if supported | Must be tested |