CPU Flags
Cheat sheet · https://pcornel.dk/topic.php?topic=3453
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 flagsvirsh domcapabilities | grep -A20 host-model— host-model featuresqm 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
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3453