Files
betterxen/docs/cpu
zachdoxsee da16b36499 loader: add CPUID with a truthful guest feature contract (#130)
CPUID returns a fixed table that never reads the host: a synthetic
vendor, and a feature bit only when every instruction of that feature
is implemented. Today that is CMOV, POPCNT, LZCNT and long mode. SSE
and SSE2 stay unreported while parts of them are rejected. Unlisted
leaves return zeros.

tests/cpu_features.rs pins every leaf in both engines, requires each
reported feature's instruction set among the executed fixtures, and
holds a refused witness instruction for each unreported feature, so a
bit cannot be set early or forgotten later.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 16:59:50 +01:00
..