Kenneth Olibrice

Doom on Pintos

C · x86 · QEMU · WebRTC

Checking server…

Keyboard only. Best in Chrome or Edge on a desktop.

Controls

← ↑ ↓ →
Move and turn
Ctrl
Fire
Space
Open doors, use
Shift
Run
Alt or , .
Strafe
1–7
Weapons
Esc
Doom's menu

How it works

  1. Pressing Play boots a fresh Pintos VM in QEMU, which starts Doom.
  2. The server captures the VM's screen and encodes it as video.
  3. Your key presses go back over a WebRTC data channel into the VM's keyboard.
  4. Quitting Doom powers off the VM, which ends the session.

Background

In Spring 2026, I took CS212: Operating Systems Kernel Implementation Project, where we completed four major projects constituting the majority of an x86 operating system kernel. These included:

  1. Thread scheduling
  2. User-mode processes
  3. Virtual memory and paging
  4. An implementation of the V6 filesystem with caching

I collaborated with two other students on this project, and we used a shared Git repository for version control. The project was written primarily in C, with some parts provided in x86 assembly that we had to interface with directly to control the hardware.

Getting Doom running proved challenging but feasible as a personal extension project after the class, since storing, loading, and running executables was already implemented. I decided to port doomgeneric since it is lightweight and designed for modularity. A small but not insignificant amount of this project was just reimplementing essential parts of libc (mostly malloc) in userspace and linking it with doomgeneric. Libc is currently statically linked with doomgeneric; it is done this way to save time, but this is one potential avenue for improvement. Allowing dynamic linking here would make it easier to port other applications as-is.

I have this crazy dream of running all sorts of applications on an OS whose development I was involved in from start to finish; Doom is just the start. I want to eventually get the JVM up and running for obvious reasons, but that's more of a pipe dream if I'm being honest. More realistically, support for things like networking sound like interesting engineering problems. I also need to fiddle with audio drivers some more so Doom can have music and sound effects.