Unishyper: A Rust-based Unikernel Enhancing Reliability and Efficiency of Embedded Systems

Keyang Hu,Wang Huang,Lei Wang,Ce Mo,Runxiang Wang,Yu Chen,Ju Ren,Bo Jiang
DOI: https://doi.org/10.1016/j.sysarc.2024.103199
IF: 5.836
2024-01-01
Journal of Systems Architecture
Abstract:Unikernels are simple, customizable, efficient, and small in code size, which makes them highly applicable to embedded scenarios. However, most existing unikernels are developed and optimized for cloud computing, and they do not fully meet the requirements of high reliability and platform customization in embedded environments. We propose Unishyper, a reliable and high-performance embedded unikernel in Rust. To support memory isolation between user applications, user code, and kernel code, Unishyper designs the Zone mechanism on top of Intel MPK. Unishyper further proposes a thread-level unwind strategy for safe fault handling while avoiding memory leakage. Finally, Unishyper supports fine-grained customization, seamlessly integrates with the Rust ecosystem, and uses Unilib for function offloading to further reduce image size. Our evaluation results show that Unishyper achieves better performance than peer unikernels on major micro-benchmarks, can effectively stop illegal memory accesses across application boundaries, and has a minimal memory footprint of less than 100 KB.
What problem does this paper attempt to address?