refactor(vm): split machine-process supervision into supervise.rs

vm.rs composed run options and supervised the machine process in
one file. The process half moves out: the fork that enters the VM
loop, the console relay, the wait and exit-status decode, and the
termios save/restore. run_prepared keeps the composition and calls
into the new module. No behavior change.
This commit is contained in:
vhaudiquet committed 2026-10-29 22:54:05 +01:00
1 parent 3e839cb5ca
commit a758689bbe
4 files changed
+254 -220

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ Rules:
- `cli` - entry point and flags (`crates/ecrou-cli/src/main.rs`,
`crates/ecrou-cli/src/cli.rs`)
- `vm` - the run flow, one-shot machines (`crates/ecrou/src/vm.rs`)
- `supervise` - machine process fork and wait (`crates/ecrou/src/supervise.rs`)
- `krun` - the libkrun FFI (`crates/ecrou/src/krun.rs`)
- `guest` - the guest init script (`crates/ecrou/src/guest.rs`)
- `rootfs` - cache-aware preparation and persistence