Reset more vcpu state on snapshot::restore#1120
Merged
ludfjig merged 1 commit intohyperlight-dev:mainfrom Feb 9, 2026
Merged
Conversation
9cfcc9c to
8507c7a
Compare
jsturtevant
reviewed
Dec 16, 2025
jsturtevant
reviewed
Dec 16, 2025
d09b1fc to
18d4ff9
Compare
jsturtevant
reviewed
Dec 18, 2025
23c4c51 to
b4dace7
Compare
jsturtevant
previously approved these changes
Feb 3, 2026
syntactically
approved these changes
Feb 4, 2026
Member
There was a problem hiding this comment.
This looks pretty good to me! It's probably a good bit of extra overhead, but perhaps that's unavoidable.
One alternate option would be to require every guest to have some code somewhere that does some/all of this reset work inside the VM, validating that the correct code is in the correct place whenever we make a snapshot. We have talked about doing something similar for TLB flushes as well. That would let you batch most of this into a single hypercall, although the hypercall itself would be a bit more expensive. Do you have any sense of whether that would make sense to investigate?
syntactically
previously approved these changes
Feb 4, 2026
2b0b5f9
e546c3d to
1092dd1
Compare
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
283b7a5 to
1d7a46e
Compare
danbugs
approved these changes
Feb 9, 2026
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.
MSRs will be added in another PR.
into()implementation for kvm/mshv due to single memcyp, but that seems like premature optimization to meAddresses #791 partially
------ After rebase ------