Skip to content

Runtime: channel creation#11

Merged
sabtf merged 6 commits intodevfrom
channel
Jan 11, 2025
Merged

Runtime: channel creation#11
sabtf merged 6 commits intodevfrom
channel

Conversation

@mmisono
Copy link
Member

@mmisono mmisono commented Jan 9, 2025

Summary

Memory channel is created by updating trustlet2's PGD entry for the output so that it points to the trustlet1's PUD entry for the input

Example:

<Before creating channel>
- Trustlet1 CR3 -> PGD [OUTPUT_VADDR] -> <PUD A> -> ...
- Trustlet2 CR3 -> PGD [INPUT_VADDR]  -> <PUD B> -> ...
// change trustlet2's PGD entry of INPUT_VADDR to point to trustlet1's output channel
<After creating channel>
- Trustlet2 CR3 -> PGD [INPUT_VADDR]  -> <PUD A> ->

Test

  • See ./module/libwallet/test_channel.py
    • This runs ./module/libwallet/externel/channel_test (compilation is needed)

Note

Memory channel is created by updating trustlet2's PGD entry for the
output so that it points to the trustlet1's PUD entry for the input

Example:
<Before creating channel>
- Trustlet1 CR3 -> PGD [OUTPUT_VADDR] -> <PUD A> -> ...
- Trustlet2 CR3 -> PGD [INPUT_VADDR]  -> <PUD B> -> ...
// change trustlet2's PGD entry of INPUT_VADDR to point to trustlet1's output channel
<After creating channel>
- Trustlet2 CR3 -> PGD [INPUT_VADDR]  -> <PUD A> ->
@sabtf sabtf merged commit cdbb65a into dev Jan 11, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants