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

Don't ignore 'junk' #132

Merged
merged 1 commit into from
Sep 27, 2019
Merged

Don't ignore 'junk' #132

merged 1 commit into from
Sep 27, 2019

Conversation

reynir
Copy link
Member

@reynir reynir commented Sep 25, 2019

It's not always junk! If sufficiently small buffers are needed they can fit in the ring page (Within_shared_page). The Linux implementation doesn't seem to take advantage of this in practice, but we do in MirageOS(!) https://github.com/mirage/ocaml-vchan/blob/master/lib/endpoint.ml#L356

I stumbled on this while trying to make qrexec calls between MirageOS unikernels in QubesOS.

@talex5 talex5 merged commit ce2c16c into mirage:master Sep 27, 2019
@talex5
Copy link
Contributor

talex5 commented Sep 27, 2019

Interestingly, the unit-tests appear to be testing small sizes. How did that pass before?

https://github.com/mirage/ocaml-vchan/blob/master/lib_test/test.ml#L37

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