BoxLite retweeted
We're writing a VMM from scratch in Rust, on KVM and Hypervisor.framework, to replace libkrun under BoxLite. Each step gets a write-up once its code merges.
What booting Linux actually takes, from part #0.5:
• No BIOS and no bootloader. The VMM copies the kernel out of the bzImage to 1 MiB, fills the 4 KiB "zero page" (command line, initramfs, E820 map), builds a GDT and identity-mapped page tables, and starts the vCPU in 64-bit mode at RIP 0x100200, with RSI pointing at the zero page.
• A 240-byte MP table at 0x9FC00 tells Linux where the CPU and the IOAPIC are. With no MP table and no ACPI, Linux falls back to one CPU on the legacy PIC.
• The only device is a 16550 UART. Writes from user space leave from the 8250 driver's interrupt handler, so the VMM has to raise IRQ 4 whenever the transmitter empties. Each character costs at least three VM exits.
• reboot() ends with 0xFE written to port 0x64, the i8042 reset line. That write is how the VM exits.
• Of the 1.76 s it takes to reach /init, 0.73 s goes to probing an i8042 that isn't there.
All of that fits in 190 lines of C: vmmlite.
The Rust VMM's KVM tests now boot real Linux on 4 vCPUs. Bringing up the other three took an MP table that lists every vCPU, plus handling EAGAIN: KVM_RUN on a parked vCPU returns it after INIT or SIPI, and it means "run again", not "fail".
Why replace libkrun at all (part #0):
• It ends the process itself, so the caller gets no exit status, and every start failure is -EINVAL.
• Its kernel is a shared library loaded with dlopen, which breaks on some hosts.
• Every directory volume is its own device, and three of them exhaust the IRQs.
• Hot-plug mounts, live resizing, memory snapshots and GPUs need a VMM we control.
Next: first boot on Apple silicon, Linux x86_64 and Linux arm64, all in CI. Then virtio from scratch.
Links in the reply 👇
BoxLite retweeted
This would have been amazing a few years ago, but in the age of AI, what’s the point?
BoxLite retweeted
This is a new paradigm for interacting with Claude that is significantly more "inline" with all the other human activity org-wide. Once you do all of the under the hood engineering work to make this "just work" (e.g. across tools, integrations, compute environments, memory, security, etc.), Claude basically joins the team in a seamless way - you can talk to it as you would talk to a person and it can help with a very large variety of workloads.
Imo this is the 3rd major redesign of LLM UIUX. The first paradigm was that the LLM is a website you go to, the second was that it is an app you download to your computer. This third one is that it is a self-contained, persistent, asynchronous entity with org-wide tools and context, working alongside teams of humans. It really takes a while to wrap your head around it, but it works and it is awesome.








