-
Notifications
You must be signed in to change notification settings - Fork 153
Remove mshv2 feature #973
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
Remove mshv2 feature #973
Conversation
ludfjig
left a comment
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.
LGTM. If you are able to follow up with similar PR in other hl-repos that would be great too
93ac23a to
3bbd8b4
Compare
ludfjig
left a comment
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.
some nits otherwise looks good!
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 removes support for the deprecated mshv2 feature, which is no longer in use. The changes systematically replace all references to mshv2 with mshv3 throughout the codebase, update build configurations, CI workflows, and remove now-unused code paths.
Key changes include:
- Replacing
mshvandmshv2feature flags withmshv3throughout the Rust codebase - Removing
mshv2-specific dependencies and conditional compilation blocks - Updating CI workflows and build scripts to remove
mshv2references - Simplifying feature flag logic in build configurations
Reviewed Changes
Copilot reviewed 20 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/hyperlight_host/Cargo.toml | Removed mshv2 package dependencies and feature flag definitions |
| src/hyperlight_host/build.rs | Updated build configuration to remove mshv2 feature alias and simplified mshv3 configuration |
| src/hyperlight_host/src/sandbox/hypervisor.rs | Updated hypervisor feature flags from mshv to mshv3, updated error message |
| src/hyperlight_host/src/sandbox/mod.rs | Updated test configuration to use mshv3 instead of mshv |
| src/hyperlight_host/src/sandbox/uninitialized_evolve.rs | Changed hypervisor setup conditional compilation from mshv to mshv3 |
| src/hyperlight_host/src/mem/memory_region.rs | Removed mshv2 extern declarations and conditional compilation blocks, cleaned up memory region implementation |
| src/hyperlight_host/src/hypervisor/regs/*.rs | Removed mshv2 extern declarations and updated feature flags to mshv3 across register implementations |
| src/hyperlight_host/src/hypervisor/mod.rs | Updated feature flags from mshv to mshv3 for Linux-specific code |
| src/hyperlight_host/src/hypervisor/hyperv_linux.rs | Removed mshv2 extern declarations and conditional compilation for VM creation and VCPU run |
| src/hyperlight_host/src/hypervisor/gdb/*.rs | Updated GDB debugging support to use mshv3 instead of mshv |
| src/hyperlight_host/src/error.rs | Removed mshv2 extern declaration and updated error handling to mshv3 |
| src/hyperlight_host/examples/guest-debugging/main.rs | Removed mshv2 feature flag handling from test configuration |
| Justfile | Updated all test and CI commands to remove mshv/mshv2 references, keeping only mshv3 and kvm |
| .github/workflows/*.yml | Updated CI workflows to remove mshv and mshv2 from test matrices and command invocations |
ludfjig
left a comment
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.
lgtm except that nit about custom logic
simongdavies
left a comment
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.
a couple of nits otherwise LGTM
- This removes CI builds and tests for mshv2 feature - Removes mshv2 special handling of VMs Signed-off-by: Doru Blânzeanu <dblnz@pm.me>
Signed-off-by: Doru Blânzeanu <dblnz@pm.me>
Signed-off-by: Doru Blânzeanu <dblnz@pm.me>
This PR closes #648 by removing support for
mshv2which is no longer in use.