Repository navigation
vmm_tests: verify guest sizing and vsock across reboot - #5186
Open
Vivek Yadav (vyadavmsft) wants to merge 3 commits into
Open
Vivek Yadav (vyadavmsft) wants to merge 3 commits into
Vivek Yadav (vyadavmsft) wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The aarch64 reboot test fails on KVM and HVF because they lack reset support, while dropping the vsock client early can leave live-connection cleanup untested.
2 open issues
What changed in this PR
Strengthens existing Linux boot tests with guest sizing checks and virtio-vsock checks across reboot, without changing VMM behavior, test registrations, or CI workflows.
Changes:
- Verifies online vCPUs and usable guest RAM against the requested configuration, allowing for Linux-reserved memory.
- Verifies the vsock CID and command round trips before and after reboot, requiring a changed boot ID.
| File | Description |
|---|---|
vmm_tests/vmm_tests/tests/tests/ttrpc.rs |
Reuses sizing constants and validates guest CPU and memory reporting. |
vmm_tests/vmm_tests/tests/tests/multiarch.rs |
Extends the virtio-vsock boot test with reboot and reconnection checks. |
Review effort: Balanced
Keep the original Pipette client alive through reset so the test exercises reboot with an active vsock connection.
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.


Summary
This strengthens regression coverage without changing VMM behavior, test registrations, or CI workflows.
Validation
cargo check, Clippy, andcargo doc, followed bycargo xtask fmt --fix.ttrpc::test_ttrpc_interfaceandmultiarch::openvmm_linux_x64_boot_virtio_vsockboth passed on Linux x64 Intel MSHV on the identical source tree at92f70f377.