Hikami: A Lightweight Hypervisor for Emulating RISC-V Extension Semantics with(…)
summary
Hikami is a lightweight Type‑1 hypervisor that traps only target RISC‑V instructions and CSRs to emulate extension semantics on real hardware (Milk‑V Megrez) using Sail-driven auto-generation of decoders and module templates. Evaluation on the ZBS bit‑manipulation extension shows ~300 instructions per trap, preserves 99.8% of native performance for non‑target workloads, keeps interrupt latency under 1 μs, generates 75% of code automatically (7k LOC total, 28 lines of hand‑written semantics) and runs up to 3.4× faster than QEMU when emulated ops are ≤0.1% of execution.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:08RISC-V ISA modularity gap
- 3:13ISA extension validation challenges
- 4:40Existing ISA emulation limits
- 5:28Hikami design goals
- 6:53Hikami emulation mechanics
- 8:18Manual implementation risks
- 8:39Formal specs automated framework
- 10:06SAIL to hypervisor templates
- 11:31Auto-generated decoders
- 13:25Evaluation methodology
- 14:26Performance on hardware
- 15:31Code reduction gains
- 15:54QEMU comparison
- 16:36Summary and future
- 17:20Q&A
