Skip to main content

Crate aegis_hwsim

Crate aegis_hwsim 

Source
Expand description

aegis-hwsim — QEMU+OVMF+swtpm hardware-persona matrix harness.

Scaffolding phase. Real logic lands in Phase 1 per aegis-boot#226. This crate currently exposes only the persona schema types so PR reviewers can sanity-check the data model before the orchestrator lands.

Modules§

coverage_grid
Coverage-grid emitter.
doctor
Host-environment check.
json
Minimal JSON string escaper, shared across the modules that emit schema_version=1 JSON envelopes (bin/aegis-hwsim, coverage_grid, doctor).
loader
load_all() — scan personas/*.yaml, parse them into Persona structs, and enforce the schema-level drift + safety guards that can’t live in serde alone.
ovmf
OVMF firmware path resolution.
persona
Persona schema types. Mirrors docs/persona-schema.md 1:1 — if one changes, the other must too.
qemu
QEMU invocation synthesis.
scenario
Scenario trait — the contract every test scenario implements.
scenarios
Concrete scenarios. Each module here implements crate::scenario::Scenario for one well-defined boot-flow assertion.
serial
QEMU serial capture.
smbios
Dmi → -smbios argv synthesis.
swtpm
swtpm lifecycle management.
test_keyring
Test-keyring generator for E5 (custom-PK + setup-mode flows).