Remix.run Logo
chubot 4 days 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 4 days ago | parent | next [-]

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 4 days ago | parent | prev [-]

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

spongebobism 4 days ago | parent | next [-]

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 4 days ago | parent | prev [-]

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