Pcornel
Virtualization · VM Hardware › vCPU

CPU Flags

Cheat sheet · https://pcornel.dk/topic.php?topic=3453

Back to the Topic

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.

Remember

  • 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.

First 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)

Verify in this order

CPU model + flags → guest features

Where it usually breaks

First mismatch in host capability/IOMMU/NUMA → hypervisor allocation/mapping → virtual hardware model → guest driver/enumeration → workload use; preserve identity/native error/pre-state before mutation.

VM Hardware → vCPU → CPU Flags reference map

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3453

Confirmation

Confirm action

Continue?