Skip to content

Conversation

@dblnz
Copy link
Contributor

@dblnz dblnz commented Oct 23, 2025

This PR closes #648 by removing support for mshv2 which is no longer in use.

@dblnz dblnz self-assigned this Oct 23, 2025
@dblnz dblnz added the kind/dependencies For PRs that update dependencies or related components label Oct 23, 2025
ludfjig
ludfjig previously approved these changes Oct 23, 2025
Copy link
Contributor

@ludfjig ludfjig left a 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

@dblnz dblnz force-pushed the remove-mshv2 branch 2 times, most recently from 93ac23a to 3bbd8b4 Compare October 24, 2025 11:49
ludfjig
ludfjig previously approved these changes Oct 24, 2025
Copy link
Contributor

@ludfjig ludfjig left a 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!

Copy link
Contributor

Copilot AI left a 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 mshv and mshv2 feature flags with mshv3 throughout the Rust codebase
  • Removing mshv2-specific dependencies and conditional compilation blocks
  • Updating CI workflows and build scripts to remove mshv2 references
  • 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
ludfjig previously approved these changes Oct 27, 2025
Copy link
Contributor

@ludfjig ludfjig left a 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

jsturtevant
jsturtevant previously approved these changes Oct 27, 2025
simongdavies
simongdavies previously approved these changes Oct 27, 2025
Copy link
Contributor

@simongdavies simongdavies left a 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

dblnz added 2 commits October 28, 2025 12:14
- 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>
@dblnz dblnz dismissed stale reviews from ludfjig and jsturtevant via c62dd41 October 28, 2025 14:25
@dblnz dblnz merged commit 86b25b6 into hyperlight-dev:main Oct 28, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/dependencies For PRs that update dependencies or related components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove mshv2 support from hyperlight

4 participants