NHacker Next
login
▲Hypervisor in 1k Lines1000hv.seiya.me
82 points by lioeters 12 hours ago | 6 comments
Loading comments...
chubot 7 hours 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 3 hours 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 3 hours ago [-]
How do you define an OS? You can write an EFI "OS" that prints "Hello, world" in approximately 5 lines.
nighthawk454 10 hours ago [-]
Also discussed at:

https://news.ycombinator.com/item?id=45070019

userbinator 9 hours ago [-]
See also https://ionescu007.github.io/SimpleVisor/ in around 500 lines of C.
notorandit 5 hours ago [-]
That's not risc-v, though.