Skip to content

Use WHvResetPartition on windows#1360

Open
ludfjig wants to merge 2 commits intohyperlight-dev:mainfrom
ludfjig:windows_scrub2
Open

Use WHvResetPartition on windows#1360
ludfjig wants to merge 2 commits intohyperlight-dev:mainfrom
ludfjig:windows_scrub2

Conversation

@ludfjig
Copy link
Copy Markdown
Contributor

@ludfjig ludfjig commented Apr 3, 2026

Addresses #791 for windows (WHP), by resetting all guest visible state on the partition. Resets more vm state on restore() at the expense of some performance (roughly ~100micros). MSHV is planned to use the same hv call, but doesn't exist in mshv crate yet, although dom0 kernel should have support already. KVM doesn't have a nice api like this, so will still manual work for KVM.

Note: the second commit is a workaround for a hyper-v bug

@ludfjig ludfjig added the kind/enhancement For PRs adding features, improving functionality, docs, tests, etc. label Apr 3, 2026
@ludfjig ludfjig force-pushed the windows_scrub2 branch 3 times, most recently from 4d1a570 to 2b61178 Compare April 3, 2026 17:23
ludfjig added 2 commits April 3, 2026 11:57
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig marked this pull request as ready for review April 3, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement For PRs adding features, improving functionality, docs, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant