Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricarkol/ocaml-toy-vmm
Tiny toy KVM-based-VMM written in OCaml and capable of starting Linux (bzimage + serial console).
https://github.com/ricarkol/ocaml-toy-vmm
kvm ocaml
Last synced: 21 days ago
JSON representation
Tiny toy KVM-based-VMM written in OCaml and capable of starting Linux (bzimage + serial console).
- Host: GitHub
- URL: https://github.com/ricarkol/ocaml-toy-vmm
- Owner: ricarkol
- Created: 2020-08-16T23:46:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T00:03:08.000Z (over 4 years ago)
- Last Synced: 2024-11-02T09:42:22.290Z (2 months ago)
- Topics: kvm, ocaml
- Language: OCaml
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a tiny toy KVM-based-VMM written in OCaml using Cstubs_cstructs. It's based on [kvm-host](https://gist.github.com/zserge/ae9098a75b2b83a1299d19b79b5fe488) by Serge Zaitsev, and the [Cstubs_cstructs example](https://github.com/ocamllabs/ocaml-ctypes/tree/master/examples/cstubs_structs) in the
ocaml-ctypes repo. It's capable of starting a Linux bzImage and loading an initrd (or initramfs). It just emulates a very basic 8250 serial console (and just the basic features).Note that this is very rough: errors are not handled correctly, everything is hardcoded (like memory size), it's full of magic values without any explanation, and the code structure (like filenames) is pretty much the same as in the ocaml-ctypes example.