TinyKVM: Blazing Fast Single-Process Sandbox
2025-03-14

A PhD student and game developer, alongside working on libriscv and an untitled game, created TinyKVM, a KVM-based single-process sandbox. TinyKVM runs static Linux ELF programs with near-native performance and incredibly low call overhead (around 2us). Leveraging hugepages for performance boosts, it supports GDB debugging and efficient VM resets, making it suitable for sandboxing Linux programs, even large language models (LLMs). TinyKVM boasts a minimal codebase, prioritizing security with a minimized attack surface. Future plans include Intel TDX/AMD SEV and AArch64 architecture support.
Development