Running BSD kernels as user processes by partial emulation and rewriting of machine instructions

  • Authors:
  • Hideki Eiraku;Yasushi Shinjo

  • Affiliations:
  • College of Information Sciences, University of Tsukuba;Institute of Information Sciences and Electronics, University of Tsukuba

  • Venue:
  • BSDC'03 Proceedings of the BSD Conference 2003 on BSD Conference
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

A user-level operating system (OS) can be implemented as a regular user process on top of another host operating system. Conventional user-level OSes, such as User Mode Linux, view the underlying host operating system as a specific hard-ware architecture. Therefore, the implementation of a user-level OS often requires porting of an existing kernel to a new hardware architecture. This paper proposes a new implementation method of user-level OSes by using partial emulation of hard-ware and static rewriting of machine instructions. In this method, privileged instructions and their related non-privileged instructions in a native operating system are statically translated into subroutine calls that perform emulation. The translated instructions of the user-level OS are executed by both the real CPU and the partial emulator. This method does not require detailed knowledge about kernel internals. By using the proposed method, NetBSD and FreeBSD are executed as user processes on NetBSD and Linux.