Roadmap to GUI
Development reference from Australis-OS. Commands and source paths on this page are relative to that repository checkout. For current task status, use the development project.
🟢 Implemented, 🟡 Partial implementation, 🔴 Absent.
Phase 1: Kernel reliability
Section titled “Phase 1: Kernel reliability”- 🟢 Define and document kernel invariants and ownership rules
- 🟢 Audit physical memory allocation, alignment and bounds checks
- 🟢 Implement reliable exception handling and fault classification
- 🟢 Strengthen interrupt handling, timers and locking
- 🟢 Add serial crash diagnostics and reproducible panic reports
Completion: Kernel survives controlled faults and reports actionable diagnostics.
Section titled “Completion: Kernel survives controlled faults and reports actionable diagnostics.”Phase 2: Memory protection
Section titled “Phase 2: Memory protection”- 🟢 Implement virtual memory management for the supported AUN1 address space
- 🟢 Separate kernel and user page tables with supervisor/user permissions
- 🟢 Enforce writable-versus-executable permissions on user and new kernel mappings
- 🟢 Implement guarded user stacks and safe address-space switching
- 🟢 Add page fault recovery and malicious pointer tests
Completion: A user process cannot read or modify kernel memory.
Section titled “Completion: A user process cannot read or modify kernel memory.”Verified for AUN1 ring-3 children on AHCI and NVMe in QEMU. See
docs/memory-protection.md for the mapping contract, adversarial tests, and
the remaining kernel bootstrap mapping hardening work.
Phase 3: Processes and scheduling
Section titled “Phase 3: Processes and scheduling”- 🟢 Define process and thread structures, states and ownership
- 🟢 Implement native ring-3 process entry and return
- 🟢 Build timer-driven context switching and preemptive scheduling
- 🟢 Add process termination, cleanup and resource limits
- 🟢 Implement safe wait, exit and parent/child lifecycle handling
Completion: Multiple independent processes run and fail without crashing each other.
Section titled “Completion: Multiple independent processes run and fail without crashing each other.”Verified for AUEX and AUN1 children on AHCI and NVMe in QEMU. The native
profile is single-CPU with one thread per process; see
docs/process-scheduling.md for its lifecycle and limits.
Phase 4: System calls and IPC
Section titled “Phase 4: System calls and IPC”- 🟢 Define a versioned syscall ABI and error conventions
- 🟢 Implement validated user/kernel data copying
- 🟢 Introduce per-process handle tables and access rights
- 🟢 Implement bounded IPC messages and synchronization
- 🟢 Add capability-based authorization and service isolation
Completion: Applications access privileged resources only through validated interfaces.
Section titled “Completion: Applications access privileged resources only through validated interfaces.”Verified for the current AUEX and AUN1 profiles on AHCI and NVMe in QEMU.
Native applications use ABI version 1, checked copies, and invited channel
handles; AUEX file handles and channel creation are owner- and grant-checked.
See docs/system-calls-ipc.md for limits and error codes. Native file calls
are covered in Phase 5; native device APIs remain future work.
Phase 5: Storage and filesystem safety
Section titled “Phase 5: Storage and filesystem safety”- 🟢 Harden AHCI, NVMe, USB and GPT input validation for the supported devices
- 🟢 Define VFS permissions and per-process file handles for AUEX and AUN1, including open modes, mount generations, and owner checks
- 🟢 Introduce a writable HyFS 2
/datavolume with generation recovery - 🟢 Add write ordering, real flushes, and injected power-loss tests
- 🟢 Implement atomic file replacement and read-only integrity checking
Completion: Unexpected shutdowns do not routinely destroy stored data.
Section titled “Completion: Unexpected shutdowns do not routinely destroy stored data.”The transactional /data profile passes host interruption tests and live
AHCI/NVMe persistence and failure tests in QEMU. Native AUN1 file handles
also pass read-only policy and reboot persistence checks on both controllers.
Physical power-loss validation remains future hardware work. See
storage and driver stability, HyFS 2 format, and
docs/system-calls-ipc.md.
Phase 6: Driver and hardware stability
Section titled “Phase 6: Driver and hardware stability”- 🟢 Improve device discovery, resource allocation and driver lifecycles: bounded PCI/MMIO/DMA ownership and two xHCI root devices work with separate transfer state, slot routing, and removal/reconnect recovery
- 🟢 Implement bounded keyboard and boot-mouse event delivery in normal context
- 🟢 Provide a validated framebuffer mode contract: the captured GOP mode is immutable after handoff; userland can query checked geometry, format, depth, and mode flags without access to framebuffer addresses
- 🟢 Add timeouts, reset paths and failure recovery for supported controllers
- 🟢 Establish a QEMU hardware compatibility and regression test matrix
Completion: Supported devices behave predictably and recover from errors.
Section titled “Completion: Supported devices behave predictably and recover from errors.”AHCI, NVMe, simultaneous xHCI keyboard/storage and keyboard/mouse pairs, and the fixed framebuffer mode contract are exercised in QEMU on both storage paths. Dynamic display modes, drawing ownership, and the compositor belong to Phase 7. Physical hardware validation remains a separate release requirement. See storage and driver stability.
Phase 7: Graphics and window management
Section titled “Phase 7: Graphics and window management”- 🟢 Build a 2D graphics library and surface abstraction: bounded RGB surfaces, clipped drawing, rounded shapes, alpha composition and checked GOP presentation
- 🟢 Add a user display API and exclusive display ownership: the AUEX display calls require a capability-granted process and a sole lease; the fixed GOP mode reports mode changes as unsupported because no native mode-setting driver exists
- 🟢 Create a user-space display server/compositor: a persistent AUEX service receives two independent client submissions over channels and composes their windows on AHCI and NVMe QEMU boots
- 🟢 Implement isolated application windows and ownership: the live service assigns window IDs on process-bound channels, retains separate bounded client RGB cell surfaces, rejects cross-window updates, and removes windows on close or peer exit
- 🟢 Add input focus, hit testing, clipping and damage tracking: the live display service routes clicks to the top window, captures content pointer drags, focuses the clicked window, sends USB keys only to that client, and restores keyboard input to the shell on a wallpaper click. It clips cell, focus, and cursor damage, coalesces mouse bursts to the old and final cursor positions, excludes rounded corners from hit tests, and uses a bounded full-screen fallback. The host model also tests clipped presentation
- 🟢 Build window decoration, movement, resizing and stacking: the live compositor draws rounded floating windows and controls, moves titles, resizes from invisible edges, raises clicked windows, and handles close, minimize, restore, and maximize. AHCI and NVMe QEMU screenshot tests exercise these transitions and pointer burst recovery
The window and top-bar behavior for these steps is specified in
docs/desktop-design.md. Implementation status and tests are in
docs/phase7-graphics-foundation.md.
Completion: Two applications can display independent windows without interfering.
Section titled “Completion: Two applications can display independent windows without interfering.”Phase 8: Software rendering and performance
Section titled “Phase 8: Software rendering and performance”- 🟢 Benchmark drawing, composition and framebuffer presentation
- 🟢 Add software backbuffer and full-frame composition
- 🟢 Implement partial redraws based on dirty rectangles
- 🟢 Implement VirtIO PCI transport and queue management: native BAR mapping, feature negotiation, DMA split ring and completion polling pass QEMU
- 🟢 Implement VirtIO-GPU 2D resource management: fenced create, attach, scanout, transfer, flush, detach and unref pass QEMU
- 🟢 Add presentation latency and dropped-frame instrumentation
- 🟢 Optimise surface copying, alpha blending and framebuffer transfers
- 🟢 Add automated frame-time and rendering correctness tests
Phase 8 GOP results and the native VirtIO exercise are recorded in
docs/phase8-software-rendering.md.
Completion: Australis can render and present complete frames efficiently through GOP, with predictable frame scheduling, correct partial redraws and measurable performance under representative multi-window workloads.
Section titled “Completion: Australis can render and present complete frames efficiently through GOP, with predictable frame scheduling, correct partial redraws and measurable performance under representative multi-window workloads.”Phase 9: Display infrastructure and abstraction
Section titled “Phase 9: Display infrastructure and abstraction”- 🟢 Add a display backend abstraction (GOP / native): GOP implements the common contract, and a native backend can implement it without GOP access
- 🟢 Introduce frame submission and pollable completion fences
- 🟢 Define display buffer formats, geometry, strides and capabilities
- 🟢 Implement validated graphics buffer allocation, lifetime and ownership: three bounded kernel-owned slots with stale-handle revocation
- 🟢 Prevent unprivileged processes from accessing or manipulating another process’s graphics buffers through capability, lease, and handle checks
- 🟢 Define explicit buffer synchronization and release semantics: a successful submission returns a fence that must complete before release
- 🟢 Support multiple presentation buffers: the display service exercises two independently drawn and submitted buffers during boot
- 🟢 Introduce display backend initialization, shutdown and recovery: GOP implements the lifecycle, and Phase 10 adds native driver recovery
- 🟢 Preserve reliable GOP fallback
The backend and buffer layout contracts are described in
docs/phase9-display-infrastructure.md.
Completion: Australis can use a hardware-independent display interface with validated buffer ownership, safe frame submission, multiple presentation buffers and reliable GOP output.
Section titled “Completion: Australis can use a hardware-independent display interface with validated buffer ownership, safe frame submission, multiple presentation buffers and reliable GOP output.”Phase 10: Native VirtIO-GPU 2D driver
Section titled “Phase 10: Native VirtIO-GPU 2D driver”- 🟢 Carry the Phase 8 PCI control queue into a persistent native driver
- 🟢 Discover and negotiate the GPU at boot, then handle explicit runtime mode changes and device display-change events with buffer revocation
- 🟢 Bind Phase 8 2D resource management to compositor-owned display buffers
- 🟢 Add display mode discovery and scanout control
- 🟢 Implement framebuffer resource transfers and flush operations
- 🟢 Enforce DMA-safe memory access and resource bounds
- 🟢 Add VirtIO-GPU reset, recovery and regression checks for lost devices and failed submissions
- 🟢 Recover resources safely when a compositor or application crashes: display handles are revoked and the GPU resource remains kernel-owned
- 🟢 Draw a backend-managed cursor into native scanout, with the display service’s software cursor as a fallback when native cursor updates fail
- 🟢 Validate GOP fallback when VirtIO-GPU is absent or initialization fails
The native driver, mode-change contract, and cursor fallback are described in
docs/phase10-native-virtio-gpu.md.
Completion: Australis can present its existing software-rendered desktop using VirtIO-GPU 2D, independently of GOP, with live bounded mode changes, a visible scanout cursor, safe resource handling, reliable device recovery and automated QEMU regression coverage.
Section titled “Completion: Australis can present its existing software-rendered desktop using VirtIO-GPU 2D, independently of GOP, with live bounded mode changes, a visible scanout cursor, safe resource handling, reliable device recovery and automated QEMU regression coverage.”Phase 11: GPU infrastructure and resource management
Section titled “Phase 11: GPU infrastructure and resource management”- 🟢 Define a render-surface abstraction with software and VirGL implementations for clear, pixel upload, readback, and cleanup
- 🟢 Introduce bounded kernel-owned GPU command submission; each request is fenced and completed synchronously
- 🟢 Negotiate the VirGL feature, discover capsets, and keep one kernel-owned 3D context across the native display backend lifetime
- 🟢 Send VirGL context, texture, upload, download, clear, and no-op commands through the control queue, with QEMU pixel readback checks
- 🟢 Create and upload a bounded GPU-backed render surface alongside the software surface; keep one texture live with the native backend
- 🟢 Create, attach, detach, and release the 3D resource with context cleanup
- 🟢 Bound the 3D texture DMA backing in the kernel
- 🟢 Reject malformed submission lengths and keep raw commands out of user syscalls
- 🟢 Use fenced completions and the control-queue timeout
- 🟢 Demote acceleration after a failed 3D command, while leaving the software-rendered 2D display available for recovery
- 🟢 Destroy the kernel context and release its texture on shutdown/reset
- 🟢 Preserve the software compositor and GOP fallback when VirGL is absent
- 🟢 Recover the kernel-owned 3D context and texture after a transient command failure when the control queue remains healthy; bound automatic attempts and keep 2D presentation available if recovery fail
- 🟢 Add per-process GPU resource quotas and opaque handles before exposing textures to applications
- 🟢 Validate semantic commands and handles for any future client submission
- 🟢 Recover 3D after complete device loss alongside the 2D scanout and redraw the preserved compositor frame after reset
- 🟢 Add per-client context teardown when clients can own GPU resources
- 🟢 Connect accelerated render surfaces to window composition and scanout
The implemented foundation and remaining work are described in
docs/phase11-gpu-infrastructure.md.
🟢 Completion: Australis can safely create, manage and release GPU-backed resources and submit supported accelerated rendering commands through VirtIO-GPU 3D/VirGL, without allowing applications to bypass resource isolation.
Section titled “🟢 Completion: Australis can safely create, manage and release GPU-backed resources and submit supported accelerated rendering commands through VirtIO-GPU 3D/VirGL, without allowing applications to bypass resource isolation.”Phase 12: Hardware-accelerated window composition
Section titled “Phase 12: Hardware-accelerated window composition”- 🟢 Implement accelerated window composition and alpha blending: live VirGL render-target drawing verifies half-alpha blending and composes two independent window textures in the normal 512 MiB QEMU desktop. The GPU frame includes the pointer and top bar; 256 MiB guests use the retained CPU compositor
- 🟢 Add GPU texture upload and surface update mechanisms: bounded rectangle uploads transfer changed client-texture pixels; window-sized textures are now allocated and updated for the two live windows; bounded VirGL texture-to-texture copies are verified in a live boot
- 🟢 Implement GPU-backed window surfaces with software fallback: live window contents have compositor-owned VirGL textures with bounded updates, and software drawing remains available after texture failures or on GOP/2D
- 🟢 Accelerate window movement, resizing and stacking: the live 512 MiB VirGL desktop passes move, resize, stack, maximize, restore, and display mode round-trip checks; the retained CPU compositor remains the fallback
- 🟢 Support GPU-accelerated clipping and rounded window regions: GPU drawing and hit tests use the software window bounds, rounded corners, content inset, and maximized geometry; the GPU pointer stays within the screen bounds. Damage-only GPU recomposition remains tracked separately below
- 🔴 Implement GPU-accelerated shapes and transformations
- 🟢 Introduce efficient CPU-to-GPU surface synchronization: changed cells upload bounded regions; fenced GPU writes and copies complete before the authoritative CPU shadow changes. Explicit GPU readback leaves that shadow intact for software fallback and resource recovery. A failed GPU scanout handoff attempts 2D restoration and blocks another GPU frame until it succeeds. The live owned-window probe checks readback, copy, update, and reupload order
- 🟡 Implement incremental updates for damaged GPU-backed surfaces: cell uploads and output blits use damage rectangles; GPU readback remains available for explicit pixel verification
- 🟢 Prevent applications from reading or modifying other applications’ GPU resources: process-scoped opaque handles and capability/lease checks reject foreign handles; the live isolation probe passes
- 🟡 Compare GPU and CPU compositor output for rendering correctness: the live visual test compares the full two-window scene below the top bar after GPU scanout and software restoration, excluding the 2D cursor overlay. Move, resize, stack, and maximize have targeted live pixel checks; complete whole-frame parity for those states remains open
- 🔴 Benchmark accelerated composition against the software compositor
The Phase 12 QEMU checks use make test-virtio-gpu-3d for render-target and
window probes, including CPU/GPU shadow and fenced copy ordering. The visual
smoke case compares GPU and software output;
live verifies normal GPU interactions at 512 MiB, and lowmem verifies the
retained CPU fallback at 256 MiB. Phase 12 remains open for transformations,
damage-only GPU recomposition, performance, and sustained-workload checks.
Completion: Australis can compose independent application windows using GPU acceleration, including transparency, clipping and transformations, while preserving window isolation and functional software-rendering fallback.
Section titled “Completion: Australis can compose independent application windows using GPU acceleration, including transparency, clipping and transformations, while preserving window isolation and functional software-rendering fallback.”Phase 13: Graphics performance, synchronization and effects
Section titled “Phase 13: Graphics performance, synchronization and effects”- 🔴 Implement advanced frame pacing and presentation scheduling
- 🔴 Add VSync support where supported by the display backend
- 🔴 Implement presentation timing and missed-frame detection
- 🟡 Reduce CPU/GPU synchronization stalls: VirtIO-GPU 2D now batches transfers before a shared flush when damage regions are close, while broader asynchronous scheduling and VirGL fence reduction remain open
- 🔴 Implement efficient GPU buffer reuse and resource caching
- 🔴 Add GPU-accelerated window animations and transitions
- 🔴 Implement animated minimize, maximize and window movement effects
- 🔴 Add optional shadows, opacity and visual effects
- 🔴 Optimise rendering for high-resolution displays
- 🔴 Support configurable graphics quality and animation settings
- 🔴 Add performance monitoring for CPU rendering, GPU rendering and presentation
- 🔴 Validate smoothness, input responsiveness and frame consistency under sustained workloads
Completion: Australis delivers consistently paced, responsive window rendering at a measured target of 60 FPS on defined reference hardware and QEMU configurations, with graceful degradation under load and reliable software fallback.
Section titled “Completion: Australis delivers consistently paced, responsive window rendering at a measured target of 60 FPS on defined reference hardware and QEMU configurations, with graceful degradation under load and reliable software fallback.”Phase 14: Desktop and applications
Section titled “Phase 14: Desktop and applications”- 🔴 Implement a graphical login/session manager
- 🔴 Build desktop shell, top bar, launcher and basic settings
- 🔴 Create a terminal application using the new APIs
- 🔴 Add a file manager, text editor and basic utilities
- 🔴 Define application lifecycle, packaging and permissions UX
Completion: A user can log in, launch programs, work with files and log out.
Section titled “Completion: A user can log in, launch programs, work with files and log out.”Phase 15: Security hardening
Section titled “Phase 15: Security hardening”- 🔴 Define trust boundaries and threat models for the OS
- 🔴 Implement privilege separation and least-privilege service accounts
- 🔴 Add secure randomness and cryptographic primitives
- 🔴 Design verified boot, signed packages and trusted updates
- 🔴 Audit parsers, permissions, IPC and memory-safety boundaries
Completion: Untrusted programs cannot gain unrestricted system access through intended APIs.
Section titled “Completion: Untrusted programs cannot gain unrestricted system access through intended APIs.”Phase 16: Release engineering
Section titled “Phase 16: Release engineering”- 🔴 Build automated CI for compiler, kernel, drivers and apps
- 🔴 Add fuzzing, stress tests and fault injection
- 🔴 Create installation, recovery and rollback mechanisms
- 🔴 Run prolonged stability tests on QEMU and real hardware
- 🔴 Publish release criteria, supported hardware and security policy