-
Notifications
You must be signed in to change notification settings - Fork 11
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
Be able to mmap
outside the Lwt
monad
#53
Comments
In robur-coop/miou#42 you link to https://www.remlab.net/op/nonblock.shtml. Also reading the solo5 source code the hvt tender does not return from block operation hypercalls until finished. With that in mind I think it could make sense to expose a direct read variant (for maybe just one sector?) Considering it may make sense to use the mirage-block interface for "virtual" block devices (for example a network mounted block device) I think the mmap function should be optional somehow. But I think it would make sense to add to mirage-block-solo5 etc. |
The semantics of operations on a mmaped region is very weird (in terms of consistency and asynchronous behavior). I'm not sure I'm very keen on exposing this in mirage directly. |
|
It may be interesting to implement the
mmap
syscall. We don't really need anything very complex and it could just be a simpleread()
outside the Lwt monad in the first place.It might be interesting to have such access for reading. The proposed interface counts in "sectors". For example
off = 1L
really meansoff = 1L * sector_size
./cc @mirage/core
The text was updated successfully, but these errors were encountered: