runtime: share physical page backing across XMem views #934

Manually merged
github merged 1 commit from gh-pr/934/head into gh-pr/934/base 2026-11-26 22:29:28 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 17:48 UTC · original
R0Y00:codex/xmem-shared-physical-pages → main · +312 −38 · 9 files · 1 commits · merged 2026-11-23 18:03 UTC

Refs #870, #892 and #902.

Give live physical-page grants shared Windows section backing. Contiguous and scatter operations map those sections into caller-owned page-sized placeholders. Unmapping preserves the reservation and the page contents. Existing grants keep their ownership rules, and release refuses any grant with a live view.

The source-built test observes shared data between addresses, scatter ordering, remap persistence, bad page numbers, release with a live view and rollback after a later destination fails. This desktop profile requires Windows placeholders from the caller.

Windows x64, MSVC 19.51, Release:

ctest --preset release --no-tests=error -R '^xmem_shim_(mapped_pages|physical_pages|exports|tools_memory)$' --output-on-failure

4/4 passed. The strict package preflight resolved two additional imports, with execution still blocked by unresolved external providers.

**@⁠R0Y00** on GitHub · 2026-11-23 17:48 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/934) `R0Y00:codex/xmem-shared-physical-pages` → `main` · +312 −38 · 9 files · 1 commits · merged 2026-11-23 18:03 UTC Refs #870, #892 and #902. Give live physical-page grants shared Windows section backing. Contiguous and scatter operations map those sections into caller-owned page-sized placeholders. Unmapping preserves the reservation and the page contents. Existing grants keep their ownership rules, and release refuses any grant with a live view. The source-built test observes shared data between addresses, scatter ordering, remap persistence, bad page numbers, release with a live view and rollback after a later destination fails. This desktop profile requires Windows placeholders from the caller. Windows x64, MSVC 19.51, Release: ```powershell ctest --preset release --no-tests=error -R '^xmem_shim_(mapped_pages|physical_pages|exports|tools_memory)$' --output-on-failure ``` 4/4 passed. The strict package preflight resolved two additional imports, with execution still blocked by unresolved external providers.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:29:26 +00:00
github manually merged commit 7716a09ba9 into gh-pr/934/base 2026-11-26 22:29:28 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 17:53 UTC · original

I tested 7716a09 together with the #888 reservation draft on Windows x64 Release. Five focused CTests passed. For both 16 GiB and 24 GiB reservations, the combined control split 64 KiB prefixes, mapped the same live grant with contiguous and scatter calls, observed a write through the other address, checked that release refused an active view, then unmounted and remapped to verify persistence. After the final unmap, release and coalescing both succeeded, and remapping the released identifier was refused. This uses the real XMem exports.

**@⁠R0Y00** on GitHub · 2026-11-23 17:53 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/934#issuecomment-7109333591) I tested 7716a09 together with the #888 reservation draft on Windows x64 Release. Five focused CTests passed. For both 16 GiB and 24 GiB reservations, the combined control split 64 KiB prefixes, mapped the same live grant with contiguous and scatter calls, observed a write through the other address, checked that release refused an active view, then unmounted and remapped to verify persistence. After the final unmap, release and coalescing both succeeded, and remapping the released identifier was refused. This uses the real XMem exports.
This discussion has been locked. Commenting is limited to contributors.
No description provided.