roadmap BUILT

600. The graphical terminal stack is built in userspace

(Number and title provisional. The lane minted the next free number after 596 to 599, which open pull requests hold, and the integrator confirms it at merge.) Promoted from the proposal build-the-graphical-terminal-stack-in-userspace. The lane for milestone 23 (a capability-routed component OS with live replacement) filed it on 2026-09-26, on its own branch (#1342). Built 2026-09-26 by lane milestone/600-userspace-graphical-stack on aarch64 and riscv64. x86_64 has no virtio-gpu, and its screen terminal is a separate case; both are recorded below.

The question, answered

The proposal asked whether the gpu's DMA pages are one frame run, and whether its virtio registration accepts one. Yes to both, since milestone 142 (a text display good enough that people use it instead of a GUI). display_service::wire_device allocates the region with one alloc_contiguous_zeroed(DMA_PAGE_FRAMES). It registers it with crate::virtual_io::register as one region, and grants it as one PageFrame capability (DECISIONS §102 (a Frame names a run of pages)). gpu_driver maps it in one MAP.

So the premise behind milestone 177 (wire the graphical terminal stack into the real interactive boot) had expired a month earlier. It built the stack in the kernel because "a virtio-gpu device alone needs eleven capability-table slots". The gpu is four capabilities.

What changed

The kernel builds no graphical process any more. It wires the devices and grants their raw materials to the progenitor, which builds gpu_driver, display_terminal and keyboard_driver itself. That is how it already built entropy and net_stack.

slot grant was
12 the gpu's surface run (READ | WRITE | GRANT) the kernel-created keystroke endpoint kbd_ep
17, 18, 19 the gpu's transport, interrupt and whole DMA run nothing
20, 21, 22 a virtio keyboard's transport, interrupt and DMA page nothing
10, 11 the firmware-screen terminal's endpoint and page also the gpu stack's terminal, until now

The builder moved again: from the boot to the launch (2026-09-30)

calef's 2026-09-30 ruling (milestone 632) moved where this stack is built. No boot builds it any more. build_graphical_stack, rewritten as build_graphical_terminal_session, runs in the spawn service when a graphical_terminal session is launched from the swish prompt. Everything this milestone decided survives. The kernel grants the devices rather than building them, and the slots are the same. So are the DMA-base-in-the-first-page convention and the measured programs. The one-time reports (UP, TERM_UP, FLUSHED, KEYBOARD_UP) are still taken in the order the drivers send them, which is this milestone's three-week lesson carried forward. The BUGS entries below describe the boot-time builder and are historical. The silent trap became a refused launch, and the UART is never freed early, because no boot has a keyboard to free it for.

What proves it

script/swish-check --graphical and --graphical-serial boot the real progenitor on aarch64 and riscv64 with a virtio-gpu. They are the swish-check-graphical row of script/ci-build. Each finds swish's prompt on the screen and types a key that must echo back through the terminal: through keyboard_driver in one leg, and through input over the UART in the other. A slot collision in the new builds fails that boot in silence, so a prompt on the screen disproves one.

The kernel's display and keyboard tests (display_tests.rs, compositor_tests.rs) now run both drivers against the page-held DMA base, which is the other half of the change.

What it unblocks

Milestone 23's second live swap. display_terminal is now a child of the progenitor, built from capabilities the progenitor held, so it could build a replacement from the same ones. The swap itself is milestone 23's, and one cost of it is below.

BUGS

Architectural parity

Follow-on

Index row

The progenitor builds gpu_driver, display_terminal and keyboard_driver from device grants where the kernel used to build all three, now that a gpu's DMA region is one capability. Proven by both graphical swish-check legs on aarch64 and riscv64; x86_64 has no virtio-gpu. 2026-09-30, milestone 632 (graphics on demand): no boot builds anything graphical now. The same builder runs at a graphical_terminal launch, from the same grants, and the legs prove it there.