add basic support of the system calls 'fork' and 'spawn_process'#970
Open
stlankes wants to merge 6 commits intohermit-os:mainfrom
Open
add basic support of the system calls 'fork' and 'spawn_process'#970stlankes wants to merge 6 commits intohermit-os:mainfrom
stlankes wants to merge 6 commits intohermit-os:mainfrom
Conversation
3fcf25e to
10fc90a
Compare
In the long term, Hermit will also be usable as a monolithic OS. To prepare for this, an example of calling the fork system call is being integrated. In the case of a unikernel, the fork call will return an error (ENOSYS).
Add the system call `spawn_process`, which creates a new process from the executable file.
The segmentation offload driver feature can only be tested with sufficiently large packets. Add a new endpoint whose response size can be adjusted easily and that can be visually inspected for correctness. Co-authored-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
In the long term, Hermit will also be usable as a monolithic OS. To prepare for this, an example of calling the fork system call is being integrated. In the case of a unikernel, the fork call will return an error (ENOSYS).
Replace all `-22` placeholders in the user-side syscall layer with real `syscall!` invocations and extend `SyscallNo` with the matching numbers (18–53) for spawn/join, file metadata, condvars, task blocking and the socket API.
- extend the fork example to test the system call `exec`
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.
In the long term, Hermit will also be usable as a monolithic OS. To prepare for this, an example of calling the system calls
forkandspawn_processare being integrated. In the case of a unikernel, the fork call will return an error (ENOSYS).