Handoff untypeds to a PD after initialisation#322
Draft
Handoff untypeds to a PD after initialisation#322
Conversation
Signed-off-by: Szymon Duchniewicz <s.duchniewicz@unsw.edu.au>
* Temporarily swap the original CNode cap pointing to CNode receiving the untypeds with the one specified in the capDL spec which has a specific guard setup. Signed-off-by: Szymon Duchniewicz <s.duchniewicz@unsw.edu.au>
requires modified microkit, szymon/handoff-untypeds branch Signed-off-by: Szymon Duchniewicz <s.duchniewicz@unsw.edu.au>
* For PD that receives untypeds, compute index of the receiving untypeds CNode based on the guard size of its cap and the sizeBits of the CNode. Signed-off-by: Szymon Duchniewicz <s.duchniewicz@unsw.edu.au>
Signed-off-by: Szymon Duchniewicz <s.duchniewicz@unsw.edu.au>
This was referenced Mar 12, 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.
Depends on changes to microkit: seL4/microkit#436
This is still WIP, but opening for tracking and visibility.
Changes to rust
capDL initializerthat allow a thread to receive capabilities to all untyped objects. Motivation for this is to a) enable static systems that require memory allocation at runtime during initialisation (see PCIe Driver Design discussion) b) enable building dynamic systems with microkit bootstrapping.Assumes that the root CNode of the TCB receiving the untypeds has been restructured similar to this proof-of-concept, see the microkit PR for more details.
TODOs:
receive_all_untypedsboolean in the capDL spec. Can't think of a better way for the CNode, but the Frame can maybe instead be a new FIllEntry? https://github.com/au-ts/rust-sel4/blob/3059c2d236bf56b066936dd48d8966255e172c3b/crates/sel4-capdl-initializer/src/initialize.rs#L570C17-L587C18