-
Notifications
You must be signed in to change notification settings - Fork 74
Enable mapping extra TCB and SC caps into PD's #406
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
Open
Kswin01
wants to merge
15
commits into
seL4:main
Choose a base branch
from
au-ts:cap_sharing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fffa8bb
tool: Map sc of children into parent cspace
Kswin01 e743f88
tool: Add mapping a pd's tcb cap into another pd
Kswin01 a28adaf
tool: Error checking for cap maps. User cap region
Kswin01 4808842
tool: Add mapping a pd's sc cap into another pd
Kswin01 57f7669
tool: Change format of specifying cap maps for pds
Kswin01 ec20f7f
tool: generalise extra cap mapping implementation
Kswin01 a60c79e
tool: Support vspace and cnode extra cap maps
Kswin01 88c75ad
sdf: Simplify error checking for extra cap maps
Kswin01 6c1e6ba
address pr comments
Kswin01 1bb73fd
switch to nested hashmaps
Kswin01 0ff41d8
Merge branch 'main' into cap_sharing
midnightveil 3473548
Remove extra SC mapping via parents
midnightveil 44cc388
capitalisation of CapMapType
midnightveil 16c88c6
Remove error about duplicate mappings + make the duplicate slot warn …
midnightveil 157c7c7
add test
midnightveil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| Copyright 2026, UNSW | ||
|
|
||
| SPDX-License-Identifier: BSD-2-Clause | ||
| --> | ||
| <system> | ||
| <protection_domain name="pd_a"> | ||
| <program_image path="test" /> | ||
| </protection_domain> | ||
|
|
||
| <protection_domain name="pd_b"> | ||
| <program_image path="test" /> | ||
|
|
||
| <cap type="gerbils" pd="pd_a" dest_cspace_slot="4" /> | ||
| </protection_domain> | ||
| </system> |
25 changes: 25 additions & 0 deletions
25
tool/microkit/tests/sdf/pd_cap_mappings_overlapping.system
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| Copyright 2026, UNSW | ||
|
|
||
| SPDX-License-Identifier: BSD-2-Clause | ||
| --> | ||
| <system> | ||
| <protection_domain name="pd_a"> | ||
| <program_image path="test" /> | ||
|
|
||
| <!-- not a duplicate slot --> | ||
| <cap type="tcb" pd="pd_a" dest_cspace_slot="1" /> | ||
| </protection_domain> | ||
|
|
||
| <protection_domain name="pd_b"> | ||
| <program_image path="test" /> | ||
|
|
||
| <cap type="tcb" pd="pd_a" dest_cspace_slot="1" /> | ||
| <cap type="sc" pd="pd_a" dest_cspace_slot="2" /> | ||
| <cap type="vspace" pd="pd_a" dest_cspace_slot="3" /> | ||
| <cap type="cspace" pd="pd_a" dest_cspace_slot="4" /> | ||
| <!-- duplicate slot --> | ||
| <cap type="cspace" pd="pd_a" dest_cspace_slot="4" /> | ||
| </protection_domain> | ||
| </system> |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.