Skip to content

Question: Thoughts on comparison to bubblewrap? #19

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

Open
danthegoodman1 opened this issue Mar 16, 2025 · 3 comments
Open

Question: Thoughts on comparison to bubblewrap? #19

danthegoodman1 opened this issue Mar 16, 2025 · 3 comments

Comments

@danthegoodman1
Copy link

danthegoodman1 commented Mar 16, 2025

TinyKVM is very cool. I'm enjoying reading about it, and eager to play with it for various workload secure isolation use cases.

With it's minimal overhead, it reminds me very much of bubblewrap from a usage perspective (minimal overhead to launch a binary). I'm sure you're familiar with it, so I'm wondering how you think about TinyKVM and bubblewrap?

To me, they seem to accomplish similar goals, albeit TinyKVM can more easily be used in code rather than just calling bubblewrap as an executable. I'm sure there are some feature differences as well.

I'm surely not as familiar with virtualization as you, but it seems bubblewrap goes for a more "entire container limited in permissions", where as TinyKVM is more "just the binary"?

@fwsGonzo
Copy link
Member

I'm surely not as familiar with virtualization as you, but it seems bubblewrap goes for a more "entire container limited in permissions", where as TinyKVM is more "just the binary"?

That's correct! TinyKVM is intentionally just the CPU processing part with memory sharing, a few fancy features on top and stuff to make it run fast. There is of course nothing stopping anyone from implement enough system call emulation to embed Chromium, or whatever they desire. It all comes down to how fast you can type!

@danthegoodman1
Copy link
Author

Thanks for the quick reply! If something like varnish is using this to handle every request, what interface do you use to pass request handler input and output? I’m guessing not stdout?

@fwsGonzo
Copy link
Member

fwsGonzo commented Mar 17, 2025

what interface do you use to pass request handler input and output?

Something that looks (and quacks) like a regular function call, a VM call. You can pass inputs, get return value(s), push to the stack and if you allocate using mmap you can pass larger data in and out.

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