-
Notifications
You must be signed in to change notification settings - Fork 28
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
File Isolation: Investigate copying files on host OS to guest memory. #768
Comments
Can you elaborate a little on what you intend to do here? |
Instead of accessing files directly on the host system, one could copy the files in the memory itself, and have the guest OS access the in-memory version of the file. I am not sure if this is actually worth it right now. |
Isn't this the current behavior of Uhyve? Or do you want to do a pre-reading during the opening? |
If I remember correctly, I got this idea for files that were explicitly mapped using However, I am not sure if this idea would cause problems later down the line. Such an approach raises a few questions, i.e. "when do we 'sync' the file onto the filesystem", "what about the directories and the directories' contents" and "shouldn't we focus on other things instead first"? |
How is this different from using Hermit's ramfs? Edit: Ah, so this is basically a cache for files that should be persistent too? |
Basically-ish. The goal would be to spare the control transition of the user mode / kernel mode on the host by actually performing the
A problem would be that Uhyve would not "know" where, memory-wise, these files should be stored, as Uhyve would not know where the ramfs is. However, if Uhyve were aware of the address space for Unlike the FUSE driver, Uhyve's file access layer does not really have a concept of "nodes" (a "meta-filesystem" that makes "Hermit" aware of a "structure", see: #839 - can't come up with a better description right now) - I am not sure if this is a blocker. |
Anyways, this idea spawned from a discussion with @jounathaen from ages ago, but I really do not have a concrete idea as to how I'd go on about with implementing this myself. |
Requires #766
Related to #239
The text was updated successfully, but these errors were encountered: