Hypervisor in 1k Lines(1000hv.seiya.me)
1000hv.seiya.me
Hypervisor in 1k Lines
https://1000hv.seiya.me/en
17 comments
Any thoughts on OsakaOS
That it's fine to do things just to have fun an mess around, but thats all there is to it. It's not even an OS at the current state.
Other small OS's are actually OS's and can be impressive efforts. Sometimes they bring new concepts or paradigms, but that itself is rarely more than a curiosity without impact. Still fun though, at the very least for the authors.
Other small OS's are actually OS's and can be impressive efforts. Sometimes they bring new concepts or paradigms, but that itself is rarely more than a curiosity without impact. Still fun though, at the very least for the authors.
Also discussed at:
https://news.ycombinator.com/item?id=45070019
https://news.ycombinator.com/item?id=45070019
See also https://ionescu007.github.io/SimpleVisor/ in around 500 lines of C.
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!
It would be nice to see a demo!
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 !
I'd say it's a good place to start !
How do you define an OS? You can write an EFI "OS" that prints "Hello, world" in approximately 5 lines.
It's a bit more than that.
> We'll implement basic context switching, paging, user mode, a command-line shell, a disk device driver, and file read/write operations in C.
see https://1000os.seiya.me/en/
> We'll implement basic context switching, paging, user mode, a command-line shell, a disk device driver, and file read/write operations in C.
see https://1000os.seiya.me/en/
that's not an OS, that's an EFI application
Same when someone claims to have written an OS in 1000 lines and all it does is get you to real mode with VGA graphics and an interactive (but useless) prompt.
(Note that you can benefit from virtualization technology in specialized scenarios outside common hypervisors, but that's not really what's being demoed here.)