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

Should seL4SharedDataWithCaps-from.template.c create caps handle? #8

Open
ANogin opened this issue Jan 26, 2020 · 2 comments
Open

Should seL4SharedDataWithCaps-from.template.c create caps handle? #8

ANogin opened this issue Jan 26, 2020 · 2 comments

Comments

@ANogin
Copy link

ANogin commented Jan 26, 2020

I am trying to create a VM-to-VM dataport, and while following the cross-vm dataport examples, I realized that seL4SharedDataWithCaps assumes that only the "to" side is a VM, and only creates the dataport_caps_handle_t for the "to" side, but not for the "from" side. If both sides are VMs, then I would guess both would need it?

@kent-mcleod
Copy link
Member

I was thinking about this too and agree. One thing you could try in the meantime is constructing the connector like so:

connection seL4SharedDataWithCaps foo(from vm0.dummy_port, to vm0.shared_port, to vm1.shared_port);

@ANogin
Copy link
Author

ANogin commented Jan 27, 2020

Thanks; as a temporary workaround I updated the seL4SharedDataWithCaps-from.template.c to be closer to the "to" one, and it seems to work correctly for at least my own use case.

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

No branches or pull requests

2 participants