Hypervisor in 1k Lines

64 lioeters 6 9/9/2025, 11:13:59 PM 1000hv.seiya.me ↗

Comments (6)

nighthawk454 · 7h ago
userbinator · 6h ago
See also https://ionescu007.github.io/SimpleVisor/ in around 500 lines of C.
notorandit · 2h ago
That's not risc-v, though.
chubot · 4h ago
Hm I would like to see this in C rather than Rust. And I wonder if you can run the 1000 line OS in C along with the 1000 line hypervisor

It would be nice to see a demo!

courtcircuits · 7m ago
This repo seems to handle VM exits and memory initialization : https://github.com/soulxu/kvmsample/blob/master/main.c

I'd say it's a good place to start !

LiamPowell · 30m ago
How do you define an OS? You can write an EFI "OS" that prints "Hello, world" in approximately 5 lines.