Hypervisor in 1k Lines

117 pointsposted 17 hours ago
by lioeters

12 Comments

arghwhat

3 hours ago

This is a cool intro to how virtualization instructions work, but people need to understand that it is not revolutionary simplicity or anything like that. It's just a a cool tech demo lacking all the important bits of a modern hypervisor required to make it practical, like paravirtualized drivers for example.

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.)

ge96

an hour ago

Any thoughts on OsakaOS

giveita

3 hours ago

Why does it need qemu? Isn't it a qemu?

ahakki

2 hours ago

I guess because it's a risc-v hypervisor and the author expects you to run it on an x86 machine.

chubot

12 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!

LiamPowell

8 hours ago

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

spongebobism

5 hours ago

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/

dark-star

an hour ago

that's not an OS, that's an EFI application