Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

CPU Flags

Direct answer

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.

When to use this

Use it when software requires a specific CPU feature or when comparing guest-visible capabilities across VM CPU models.

First 30 seconds

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.

Operational verification

CPU model + flags → guest features

Evidence · next step

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
Common mistakes
Common traps

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.

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 software requires a specific CPU feature or when comparing guest-visible capabilities across VM CPU models.
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

host capability → hypervisor CPU policy → guest CPU flags → OS/library → application path

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
  • 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.
Key checks
  • grep -o -w -E 'aes|avx2|avx512f|sse4_2' /proc/cpuinfo | sort -u — guest feature flags
  • virsh domcapabilities | grep -A20 host-model — host-model features
  • qm 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>'
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 → CPU Flags. 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
cpu flags vmguest cpuid flagsvirtual cpu features
Embedded reference data

Quick lookup tables

VM Hardware → vCPU → CPU Flags reference map

Fast VM-hardware boundaries for VM Hardware → vCPU → CPU Flags.

BoundaryMeaningEvidence limit
Host capabilityPhysical feature availableMay be masked
VM CPU policyChooses exposed setCompatibility boundary
Guest flagFeature advertisedNot use proof
ApplicationConsumes feature if supportedMust be tested
Confirmation

Confirm action

Continue?