-
Notifications
You must be signed in to change notification settings - Fork 154
vmm_tests: use inspect
to validate state of the nvme driver
#2103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
vmm_tests: use `inspect` to verify some state of the nvme driver in basic relay scenarios. TODO: - [ ] Move the `child` helper to the `inspect` crate? - [x] Fix up test failures (test failures are expected at this point, since the logic isn't solid. - [ ] Use this technique in more interesting ways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the vmm_tests framework to use the inspect
API for validating NVMe driver state in OpenHCL scenarios. The changes enable testing of specific NVMe device properties through inspection rather than just verifying basic functionality.
Key changes:
- Made the
inspect
function public in the petri crate for broader testing use - Added helper functions to extract typed values from inspect nodes
- Enhanced NVMe relay tests to validate device properties like save/restore support, queue size, and keepalive settings
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
vmm_tests/vmm_tests/tests/tests/x86_64/openhcl_uefi.rs | Added inspect validation logic and helper functions for NVMe device property testing |
vmm_tests/vmm_tests/Cargo.toml | Added inspect crate dependency |
petri/src/vm/mod.rs | Exposed inspect_openhcl method publicly and refactored error handling |
These tests will get more useful as we complete other work in this space (especially #2087 and other related work). But, I'd like to start getting the structure of these tests in so that we can use them to do that dev work. |
Left 2 nit comments but lgtm otherwise |
petri: make
inspect
public, andvmm_tests: use
inspect
to verify some state of the nvme driver in basic relay scenarios.TODO:
child
helper to theinspect
crate?