-
Notifications
You must be signed in to change notification settings - Fork 33
Add support for resettable protection domains #167
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
Merged
Merged
Conversation
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
Member
Author
|
Uses seL4/microkit#164 |
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
4dba8bf to
b61459e
Compare
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
Signed-off-by: Nick Spinale <[email protected]>
|
Very cool feature! |
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.
This PR adds support for the creation of Microkit protection domains which are capable of restoring themselves to their initial state from code and data in read-only memory. Resettable protection domains may reset themselves with the new
sel4_reset::reset()function (e.g. in a panic handler), or a parent protection domain may reset a child protection domain by setting its PC back to its entrypoint.To illustrate how all of this works, here are the steps for creating such a resettable protection domain:
sel4-resetcrate, using, for example,extern se4_reset. This crate defines the_resetsymbol, which will serve as the protection domain's new entrypoint._resetresets all writable segments to their initial state from data in read-only segments, with the exception of the footprint of the.persistentELF section, and then passes control to_start.--target *-sel4-microkit-resettable*.jsontarget specs, which augments the base Microkit target specs with a linker script fragment that designates_resetas the ELF's entrypoint and gathers and places the.persistentELF section.sel4-reset-cliprogram, which adds a read-only segment containing all of the data needed to restore the writable segments to their initial state.See
crates/private/tests/microkit/reset/src/bin/test.rsfor all of this in action.