interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / evidence / p3_nvme_read_qemu_2026-09-25.md

66 lines · 3078 bytes Raw Blame History Source

P3 native NVMe read substrate: QEMU qualification (2026-09-25)

Result: QEMU_NVME: PASS in both SMMU-confined and fail-closed modes.

This is an emulator qualification only. It is not Machine 1 evidence. The substrate issues Identify and Read commands only; write and flush are not claimed, implemented, or exercised.

Baseline: aien-dev/aienos @ ff5de9c plus this branch. Command: bash scripts/qemu_nvme_test.sh (SMMU mode) and AIENOS_QEMU_SMMU=0 bash scripts/qemu_nvme_test.sh (fail-closed mode).

Disposable media

SMMU-confined run (-M virt,...,iommu=smmuv3)

NVME_DISCOVERY_QEMU: PASS (class=0x0108 seg=0000 bus=00 device=02 function=00 bar0=0x8000004000)
smmu: enabled base=0x9050000 stream_id=0x10
smmu_dma_window: nvme only, translation active
dma_gate: nvme granted (Confined), bus master on
NVME_IDENTIFY_QEMU: PASS (vid=0x1b36 did=0x0010 nsid=1)
NVME_GEOMETRY_QEMU: PASS (nsid=1 block_count=131072 block_size=512)
NVME_READ_QEMU: PASS (lba=2048 blocks=1 bytes=512 sha256=8b688adcb13bef657e868313fb149e7e92e664b5f09fbd32f99d9cabf756fdf1)
NVME_BOUNDS_QEMU: PASS (lba=131072 rejected OutOfRange no_command)
NVME_ERROR_QEMU: PASS (identify nsid=0xffffffff rejected status=nonzero sct=0 sc=11)
dma_gate: nvme bus master revoked
QEMU_NVME: PASS (smmu)

The read SHA-256 the kernel computes natively equals the host-computed sentinel SHA-256, so a wrong or stale image cannot pass.

Fail-closed run (no SMMU, normal build)

NVME_DISCOVERY_QEMU: PASS (class=0x0108 seg=0000 bus=00 device=02 function=00 bar0=0x8000004000)
dma_sweep: seg 0000 bus 00-ff functions=3 bridges=0 bridges_bme=0 endpoints_bme_found=2 still_enabled=0
dma_gate: nvme denied (NoSmmu), bus master stays off
nvme: unavailable (SMMU DMA isolation not active)
QEMU_NVME: PASS (fail-closed)

NVME_IDENTIFY_QEMU and NVME_READ_QEMU are absent. Discovery runs before the DMA gate and is DMA-free; the controller is never enabled and no read happens. This proves the M3 rule holds for the NVMe path: no SMMU confinement means no DMA.

What this proves and does not prove