XDV OS

Cross-Domain Virtualizer

XDV Operating System

A Dust-native operating system stack spanning xdv-boot, xdv-kernel, xdv-runtime, xdv-shell, and xdv-xdvfs.

64MB

Target image profile

2 Binaries

boot.bin and kernel.bin

K Domain

Operational now, Q/Phi hardware-gated

Boot Contract Chain

Current boot policy is strict: stage-0 transports to boot.bin only; boot.bin then resolves and transfers control to /console/kernel.bin from xdvfs.

  1. 1. Stage-0

    xdv-os/src/boot_sector.asm enters from MBR and loads boot.bin.

  2. 2. xdv-boot Runtime

    xdv-boot executes splash flow, firmware path recognition (MBR/UEFI), and xdvfs mount policy.

  3. 3. Kernel Discovery

    Loader resolves xdvfs:/console/kernel.bin and loads the kernel image.

  4. 4. Kernel Handoff

    XdvKernel::kernel_start() initializes runtime and enters kernel main loop.

  5. 5. Runtime + Shell

    xdv-runtime starts userspace; xdv-shell provides the interactive #: prompt.

Subsystems

xdv-os

Integration workspace that composes the boot contract and emits partitioned 64MB images.

  • xdv-os-mbr-64m.img (BIOS/MBR)
  • xdv-os-uefi-64m.img (UEFI/GPT)
  • xdv-os.img alias to MBR image

xdv-boot (v0.3.0)

Boot loader profile with BIOS and UEFI path models and xdvfs-based kernel load policy.

  • boot_loader_profile.ds
  • boot_mbr.ds and boot_uefi.ds
  • boot_xdvfs_mount.ds, boot_kernel_load.ds

xdv-kernel (v0.2)

Sectorized kernel with 13 subsystems including memory, CPU, DAL, CDS, security, and trace layers.

  • K-domain runtime online on x64 Intel/AMD
  • Q/Phi calls hardware-gated with code 100
  • Bare-metal runtime shell profile for VM validation

xdv-runtime

Userspace runtime services: process, memory, I/O, scheduler, filesystem, and shell bootstrap bridge.

  • runtime_bridge.ds
  • runtime_memory.ds, runtime_process.ds
  • runtime_console.ds, runtime_fs.ds

xdv-shell (v0.3.0)

Interactive command shell with lexer/parser/executor pipeline and builtin command set.

  • Prompt: #:
  • Builtins: cd ls cat mkdir rm echo ps help exit
  • Integrated with runtime command dispatch

xdv-xdvfs (v0.3.0)

Native filesystem stack and block-device contracts for ATA/AHCI, NVMe, USB MSC, and VirtIO.

  • Partition probing and superblock validation
  • Mount/remount/sync/fsck and format pipeline
  • Companion tooling in xdv-xdvfs-utils

64MB Image Profile

XDV image generation uses a partition-aware xdvfs layout for deterministic boot and preload behavior.

Boot Partition Metadata

  • Partition start LBA: 2048
  • Superblock relative LBA: 8
  • Kernel slot relative LBA: 32
  • Preload payload relative LBA: 128

Preloaded Packages

  • xdv-os
  • xdv-core / xdv-runtime-utils
  • xdv-edx
  • xdv-shell

Build and Run

Windows

cd xdv-os\src
build.bat

Linux / macOS

cd xdv-os/src
./build.sh

Cleanup

powershell -NoProfile -ExecutionPolicy Bypass -File xdv-os/scripts/clean_xdv_os.ps1 -Apply

VirtualBox workflow: attach xdv-os-mbr-64m.img (or xdv-os.img) for BIOS, or enable EFI and attach xdv-os-uefi-64m.img.