Skip to main navigation Skip to search Skip to main content

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
  • *Corresponding author for this work
  • Beihang University
  • Tsinghua University
  • School of Computer Science and Engineering

Research output: Contribution to journalArticlepeer-review

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.

Original languageEnglish
Article number103199
JournalJournal of Systems Architecture
Volume153
DOIs
StatePublished - Aug 2024

Keywords

  • Embedded system
  • Reliability
  • Rust
  • Unikernel

Fingerprint

Dive into the research topics of 'Unishyper: A Rust-based unikernel enhancing reliability and efficiency of embedded systems'. Together they form a unique fingerprint.

Cite this