Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WASMを実行する自作Microkernel, mavisの紹介

RI5255
September 23, 2023

WASMを実行する自作Microkernel, mavisの紹介

2023/9/23 第35回 自作OSもくもく会オンライン の@RI5255 (https://twitter.com/RI5255) の発表資料です。

RI5255

September 23, 2023
Tweet

More Decks by RI5255

Other Decks in Technology

Transcript

  1. Motivation Microkernel ・同じOS、同じアーキテクチャである限り同じバイナリが動く世界 kernel system calls タスクスケジューラ デバイスドライバ ファイルシステム user

    タスク生成 低レベルなメモリ管理 IPCの仕組み Program ・アプリケーションに応じて”OS”の機能を容易に切り替えられる世界 7
  2. Demo: “Hello World!” on mavis shell fs “hello” OPEN_FILE_MSG OPEN_FILE_REPLY_MSG

    1 shell fs READ_FILE_DATA_MSG READ_FILE_DATA_REPLY_MSG 2 shell vm SPAWN_TASK_MSG SPAWN_TASK_REPLY_MSG 4 hello create_vm_task shell fs CLOSE_FILE_MSG CLOSE_FILE_REPLY_MSG 3 hello vm EXIT_TASK_MSG 5 task_destroy shell DESTROY_TASK_MSG ”Hello World!” 14
  3. 展望 Message passing over a network 24 Network RPC(Remote Procedure

    Call) Application Kernel(WASM Runtime) Servers WASM Application Kernel(WASM Runtime) Servers WASM ・異なるアーキテクチャを透過的に扱うことができるようになるかも!?