Skip to content

Conversation

@ludfjig
Copy link
Contributor

@ludfjig ludfjig commented Nov 17, 2025

Simplifies cancellation logic and unifies logic for all hypervisors, without affecting current behavior. Adds documentation to how everything works

@ludfjig ludfjig force-pushed the cancellation branch 3 times, most recently from 8d80a67 to f1742b2 Compare November 17, 2025 23:31
@ludfjig ludfjig added the kind/refactor For PRs that restructure or remove code without adding new functionality. label Nov 17, 2025
@ludfjig ludfjig marked this pull request as ready for review November 18, 2025 17:48
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.

Some minor commments, on this:

If we want to maintain the old behavior of kill() being effective in the entire MultiUseSandbox::call() scope, we can do that too , just needs moving 1 line of code around (effective here meaning skipping the next VM entry).

I think we should.

Copy link
Contributor

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks splitting this out and for the detailed docs!

Copy link
Contributor

@dblnz dblnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments from me.
Good work with the docs explaining the cancellation feature and splitting the PR 👍

Signed-off-by: Ludvig Liljenberg <[email protected]>
Signed-off-by: Ludvig Liljenberg <[email protected]>
jsturtevant
jsturtevant previously approved these changes Nov 19, 2025
Copy link
Contributor

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Would like @simongdavies to give one more pass too. There is a bit more clean up we can do but I believe you will take care of that with some of the other PR's in the queue.

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.

LGTM with minor request for a code comment

jsturtevant
jsturtevant previously approved these changes Nov 19, 2025
simongdavies
simongdavies previously approved these changes Nov 20, 2025
jsturtevant
jsturtevant previously approved these changes Nov 20, 2025
@ludfjig ludfjig dismissed stale reviews from jsturtevant and simongdavies via 52d7584 November 20, 2025 19:03
@ludfjig ludfjig force-pushed the cancellation branch 3 times, most recently from c457c26 to 8e69643 Compare November 20, 2025 19:59
@ludfjig ludfjig merged commit 9ab8884 into hyperlight-dev:main Nov 20, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor For PRs that restructure or remove code without adding new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants