Merged
蒙面好汉睡大觉 requested to merge
work/aarch64-vm-health into
main
Summary
- 新增 bounded VM health 模型,覆盖 ConfirmedCrash、RunError、EntryFailure、GuestShutdown、SuspectHang、Idle 和 Running。
- 在 AxVisor vCPU loop 中记录 host-observed health 事件,并将 pvpanic cooperative report 优先映射为 ConfirmedCrash。
- 新增
vm health <VM_ID> 查询命令,支持 --format json。
- 补充 AxVisor 对
axvmconfig 的直接依赖,修复 PR1 FDT 代码中的 EmulatedDeviceType 引用路径。
Validation
-
cargo fmt --check passed
-
cargo build -p axvisor --target aarch64-unknown-none-softfloat -Z build-std=core,alloc --release passed
-
cargo clippy -p axvisor --target aarch64-unknown-none-softfloat -Z build-std=core,alloc --release completed with existing warnings
-
cargo clippy ... -- -D warnings blocked by pre-existing arm_vcpu warnings
-
cargo test -p axvisor health -- --nocapture blocked by AxVisor no-std bin host test harness link error: undefined symbol: main
Notes
-
TODO-2026-05-12-001 is marked In Progress, not Done; final QEMU/integration validation remains for PR3.