Handoff untypeds to a PD after initialisation#436
Draft
Handoff untypeds to a PD after initialisation#436
Conversation
* Add boolean attribute to Protection Domain node in System Description File `receive_all_untypeds`, which selects which PD is to receive all remaining untyped objects after CapDL initialiser runs Signed-off-by: Szymon Duchniewicz <s.duchniewicz@unsw.edu.au>
Signed-off-by: Szymon Duchniewicz <s.duchniewicz@unsw.edu.au>
requires modified rust-sel4, szymon/handoff-untypeds branch
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 rust-sel4: seL4/rust-sel4#322
This is still WIP, but opening for tracking and visibility.
Allows for specifying a Protection Domain (PD) and a Memory Region that will receive all untyped capabilities and information about them after the
capDL intiializerfinishes running (see: seL4/rust-sel4#322 for changes to thecapDL initializer). Also adds a simple example system using these changes.For the PD receiving the untypeds, its CNode gets restructured (similar to this proof-of-concept design), by creating a new root CNode, placing the Microkit CNode at idx 0 (so the cap pointers set up by the microkit system remain addresable the same way) and placing a new CNode at idx 1 (
receiving_untyped_cnode) which will receive all the untyped caps. Currently, to allow actually using these untypeds, also places a self referencing CNode cap at idx 0 ofreceiving_untyped_cnode.TODOs:
receiving_untyped_cnodeis necessary, should it instead hold a cap to the newrootCNode?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