Skip to content

Query live x86 VSpace page presence by exact root - #22

Draft
stakach wants to merge 14 commits into
codex/libernt-mediafrom
codex/vspace-page-presence
Draft

stakach wants to merge 14 commits into
codex/libernt-mediafrom
codex/vspace-page-presence

Conversation

@stakach

@stakach stakach commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a read-only x86 PML4 QueryPage invocation after existing rust-micro extension labels, preserving current syscall ABI numbers.
  • Authenticate the exact live ASID-to-root capability and inspect actual 4 KiB, 2 MiB, or 1 GiB present leaves in the named VSpace.
  • Refuse disallowed virtual addresses and forged or stale root identity.

Review and validation

  • The new behavioral kernel spec first failed at the missing invocation. The first QEMU run exposed an incorrect test unmap slot, which was corrected to the existing fixture's frame slot.
  • cargo +nightly check -Z build-std=core -Z build-std-features=compiler-builtins-mem -Z unstable-options -Z json-target-spec --target triplets/mykernel-x86.json --features spec --locked passes.
  • ./scripts/build_kernel.sh passes. QEMU spec log reaches All specs passed!, including mapped, absent, adjacent, 2 MiB, 1 GiB, wrong-root, disallowed-address, and post-unmap checks. The launcher continues into its pre-existing rootserver demo after the spec verdict; QEMU was stopped at that point, with no orphaned run.
  • Parent userspace-ntos integration and native boot validation remain tracked in Host the installed LiberNT AMD64 userspace on rust-micro userspace-ntos#310 / PR #314.

Closes #21.

Add a read-only PML4 invocation that authenticates the live ASID-to-root mapping and inspects present page-table leaves, including 2 MiB and 1 GiB mappings. Reject disallowed addresses and stale or forged root identities. Kernel specs prove mapped, absent, adjacent, covering-page, wrong-root, and post-unmap behavior.

Validation: nightly custom-target spec check; kernel spec image built and QEMU log reached All specs passed! (launcher demo stopped after verdict).
Keep the executive request label coupled to the pinned kernel interface instead of repeating its numeric value.
Validate the single PCI segment-zero DRHD and copy exact endpoint scopes into kernel-owned requester authority. Require translation enable and ordered context/IOTLB invalidation, then retire DMA leaves before page tables with alias and descendant checks. Native image build and bounded QEMU boot proved VT-d initialization, translation enable, and AHCI IOPT map success.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant