Repository navigation
feat: add Windows WHP runtime, safer CLI diffs, and parallel CI - #84
Merged
Merged
Conversation
reiase
marked this pull request as ready for review
October 31, 2026 16:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pvisor-vm currently depends on Unix runtime modules and cannot build natively on Windows. This adds an initial Windows x86_64/WHP backend behind the existing
pvisor_vm::apicontract, with a Windows build/test workflow and a separate real-VM smoke job. It also includes the local CLI changes that make review/apply diff previews bounded and resistant to symlink replacement.Changes
7e90097bb568b0c9ff7ca3be264744a2dca5a740, plus the AMD guest TSC boot fix fromff7f4b5254c8984b175169b9ef5ee02b51ff2fbf. Provenance and third-party notices are included.The CLI now opens regular files without following symlinks in any path component, bounds file reads, checks the complete buffer for binary data, and generates unified diffs from private copies. Regression tests cover symlink replacement, binary markers beyond 8 KiB, and review/partial-apply/conflict/drop behavior.
Most added lines are the imported private Windows backend. Existing Unix runtime modules retain their implementation.
CI parallelism
Observed workflow timings: CLI build/tests/contracts completed in about 12.5 minutes (previous run: 21.8), the complete CI in 18.9 minutes, and benchmark build/compare in 15.2 minutes (previous run: 27.7). These are individual hosted runs with different cache/runner conditions, not controlled performance claims. Additional parallel runners increase total runner usage.
Validation
Passed locally:
The full Linux VM suite recorded 597 passes, 29 failures and 9 skips in the sandbox. The socket/ownership failures passed when rerun outside the sandbox; 19 KVM-dependent failures remain unvalidated because this host has no /dev/kvm.
CI also passed the Linux pVisor and CLI (including Podman-derived contracts and Gateway features), Core, Gateway, native daemon/shim/shim-vm, macOS workspace, network/Gateway examples, formatting, lint, Python, and specification checks. The updated budget, strict isolation regressions, filesystem examples, documented cases, and CLI learning path also pass on the final commit.
Limits and runner setup
Windows native CI passed: MSVC builds with and without the embedded supervisor, 202 tests (zero skips), warnings-denied rustdoc, and the host runner artifact. See Windows VM run. This remains a draft pending real WHP guest execution; native contract tests do not establish guest runtime correctness.
pvisor-whplabel identifies a self-hosted Windows x86_64 Actions runner; no such runner was provisioned by this change.PVISOR_WINDOWS_WHP=trueor manually dispatch the workflow withrun_whp.Build commands, platform behavior and runner setup are documented in crates/pvisor-vm/README.md.