Skip to content
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

Runtime: channel creation #11

Merged
merged 6 commits into from
Jan 11, 2025
Merged

Runtime: channel creation #11

merged 6 commits into from
Jan 11, 2025

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> ->
@Sabanic-P Sabanic-P 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