-
Notifications
You must be signed in to change notification settings - Fork 235
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
feat: Suspend support in spawn syscalls #3996
Conversation
Co-authored-by: Eval EXEC <execvy@gmail.com>
Co-authored-by: Eval EXEC <execvy@gmail.com>
callee_peak_memory: u64, | ||
callee_memory_limit: u64, | ||
content: Vec<u8>, | ||
content_length: u64, |
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.
The inclusion of content_length
is unnecessary. This is because once the child script invokes set_content, the content size whether truncated or otherwise, is already known.
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.
I'm looking at a different angle: this is required to build this syscall used by a child. We don't know that whether a child machine has invoked set_content
or not when suspended, so I believe this is required to build the full environment for a child machine.
@eval-exec Personally I don't think this PR is an enhancement. To me the previous spawn implementation has a bug when used with the suspend / resume feature. This PR fixes the bug. |
Co-authored-by: Quake Wang <quake.wang@gmail.com>
Co-authored-by: Quake Wang <quake.wang@gmail.com>
Co-authored-by: Quake Wang <quake.wang@gmail.com>
Co-authored-by: Quake Wang <quake.wang@gmail.com>
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, please update the PR description.
Already updated. |
What problem does this PR solve?
This PR fixes a bug that when suspend happens when a child machine created by the spawn syscall is running, CKB cannot correctly suspend & resume the VM.
What is changed and how it works?
What's Changed: the bug relating spawn syscall and suspend / resume feature is fixed.
Related changes
owner/repo
:Check List
Tests
Side effects
Release note