runtime: add an independent physical-page fixture for #880 #887
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!887
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/887/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@triggered02 on GitHub · 2026-11-23 15:54 UTC · original
triggered02:xmem-physical-pages→main· +335 −3 · 7 files · 2 commits · closed without mergingDraft for coordination. rasptum owns #880, and the maintainer asked to coordinate before adding another XMem shim implementation. This PR is the independent source-built fixture and negative-control offer from #880; the shim code is the local probe I used to prove the import can be passed, not a proposal to supersede rasptum's implementation.
Refs #880 and #870. Builds on the merged #879.
Change
Adds a source-built physical-page fixture for the desktop
xmem.dllallocation pair:cpu_xmem_physical.exeimportsXMemAllocatePhysicalPagesandXMemFreePhysicalPagesby name. The same EXE runs under the Windows loader andpe_map, and the exit codes are compared.src/xmem_shim.cpp/.defcontain the local probe implementation used by the fixture. They are not proposed as the #880 implementation.Verification
Windows 11 Pro 26200, MSVC 19.52, DXC 10.0.26100, CMake/Ninja, Ryzen 5 5500 (GPU not used).
Dev: 6/6 passed.
Release: 6/6 passed. The existing
cpu_native_shim_startupalso passes in Release after the shim change.python -B tests/docs_links_check.py(13 files, 179 links),python -B tests/bidi_controls_check.py(709 files) andgit diff --checkpass.Evidence and follow-up
f89e410,crates/compat/xmem/src/virt.rs(GPL-3.0; behavior only, no code copied). It is not an official ABI.Checklist
AI-assisted.
@R0Y00 on GitHub · 2026-11-23 15:58 UTC · original
Thanks for making the same-EXE comparison available. For the fixture-only follow-up, the stable fixture baseline is the 64 KiB pair imported by name, the successful in/out count and release, and the omitted-provider control before entry. Keep the canary check with the agreed failure policy. The draft currently accepts zero pages and exercises a large-page success case, while #880 starts with 64 KiB. Please keep those prototype-specific expectations, LastError values and PFN-number restrictions out of the common fixture unless the accepted implementation explicitly promises them.
@triggered02 on GitHub · 2026-11-23 16:01 UTC · original
Thanks. Agreed. Once rasptum's #880 lands, I'll rebase this to the fixture-only follow-up and remove the local shim. The common fixture will keep only the stable baseline:
I'll drop the zero-page acceptance, the large-page success case, and the prototype-specific LastError and PFN-value assertions. If #880's accepted failure policy differs, I'll use that instead.
AI-assisted.
@triggered02 on GitHub · 2026-11-23 16:19 UTC · original
Superseded by #892, which now includes the independent source-built comparison, canary-on-refusal checks, missing-provider control and the physical-page policy. Closing this draft to avoid duplicate review; the
xmem-physical-pagesbranch stays available for reference.Pull request closed