M1: reproduce Xbox-style reserved physical-page remapping as an isolated Windows fixture #16

Open
opened 2026-11-26 21:01:03 +00:00 by github-bot · 1 comment
Owner

@⁠ProhorovIlja on GitHub · 2026-11-21 21:42 UTC · original

Current Win32 memory alias PR #12 validates host reserve/commit/MapViewOfFile alias behavior. That is a prerequisite, not equivalence to Xbox XMem.

Source comparison: XCL physical mapping commit fd746622 records author-supplied logic for mapping/unmapping physical pages into reserved address regions and reuploading textures.

Follow-on gates

  • Design an original host-side page object abstraction with identity + lifetime, reserve range, out-of-order map, unmap, remap elsewhere, and separate persistent backing
  • Assert content continuity after move, zero/unmapped hole semantics, invalid bounds/overlap and non-corrupt rollbacks
  • Verify concurrency locks and write-watch/dirty-page tracking using source-built 64 KiB page inputs
  • Independently check on Windows native runner; do not claim GPU UMA coherency until a real D3D12 resource/upload test executes
  • Treat XCL as reference with GPL-2.0-only license; no source copy into MIT project

No game assets, undocumented Xbox binaries, or DRM work is part of this test.

**@⁠ProhorovIlja** on GitHub · 2026-11-21 21:42 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/16) Current [Win32 memory alias PR #12](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/12) validates host reserve/commit/MapViewOfFile alias behavior. That is a prerequisite, **not** equivalence to Xbox XMem. Source comparison: [XCL physical mapping commit fd746622](https://github.com/ivall/xcl/commit/fd746622e95dcb3a4b6b8a985ea045a1a3c6610a) records author-supplied logic for mapping/unmapping physical pages into reserved address regions and reuploading textures. ## Follow-on gates - [ ] Design an original host-side page object abstraction with identity + lifetime, reserve range, out-of-order map, unmap, remap elsewhere, and separate persistent backing - [ ] Assert content continuity after move, zero/unmapped hole semantics, invalid bounds/overlap and non-corrupt rollbacks - [ ] Verify concurrency locks and write-watch/dirty-page tracking using source-built 64 KiB page inputs - [ ] Independently check on Windows native runner; do not claim GPU UMA coherency until a real D3D12 resource/upload test executes - [ ] Treat XCL as reference with GPL-2.0-only license; no source copy into MIT project No game assets, undocumented Xbox binaries, or DRM work is part of this test.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:01:03 +00:00
Author
Owner

@⁠ProhorovIlja on GitHub · 2026-11-22 01:30 UTC · original

2026-11-22 native Windows CPU placeholder-page remapping achieved as an isolated source-built fixture; issue remains OPEN for console/GPU-specific semantics. PR #74 merged after CI 44971613467, which ran 40/40 Windows CTests with 0 failures (38 actual passes, 2 explicit device-related skips) and Linux source CI success. Actual Win32 x64 VirtualAlloc2(MEM_RESERVE_PLACEHOLDER) reserves four contiguous 64KiB virtual CPU slots, VirtualFree(PRESERVE_PLACEHOLDER) splits, MapViewOfFile3(REPLACE_PLACEHOLDER) maps two section-backed pages out of order, including same-backing aliases; UnmapViewOfFile2(PRESERVE_PLACEHOLDER) returns to reserved state, and 65,536-byte patterns persist through remap. Negative overlaps and improper sizing fail without corrupting nearby data. The same post-merge test also executes BC1 and BC3 GPU SRV texture pipeline differentials from PR #73. Outstanding for the full issue: actual Xbox XMem physical identity/page ABI, GPU access/coherency, dirty-page write-watch, multi-thread synchronization, guest page-table semantics and real hardware device performance; no game EXE or Rockstar files were used.

**@⁠ProhorovIlja** on GitHub · 2026-11-22 01:30 UTC · [original](https://github.com/ProhorovIlja/NativeX-Runtime/issues/16#issuecomment-7072248061) 2026-11-22 **native Windows CPU placeholder-page remapping achieved as an isolated source-built fixture; issue remains OPEN for console/GPU-specific semantics**. [PR #74](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/74) merged after [CI 44971613467](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/actions/runs/44971613467), which ran 40/40 Windows CTests with 0 failures (38 actual passes, 2 explicit device-related skips) and Linux source CI success. Actual Win32 x64 VirtualAlloc2(MEM_RESERVE_PLACEHOLDER) reserves four contiguous 64KiB virtual CPU slots, VirtualFree(PRESERVE_PLACEHOLDER) splits, MapViewOfFile3(REPLACE_PLACEHOLDER) maps two section-backed pages out of order, including same-backing aliases; UnmapViewOfFile2(PRESERVE_PLACEHOLDER) returns to reserved state, and 65,536-byte patterns persist through remap. Negative overlaps and improper sizing fail without corrupting nearby data. The same post-merge test also executes BC1 and BC3 GPU SRV texture pipeline differentials from [PR #73](https://github.com/ProhorovIlja/Scarlett-Windows-Compat/pull/73). **Outstanding for the full issue:** actual Xbox XMem physical identity/page ABI, GPU access/coherency, dirty-page write-watch, multi-thread synchronization, guest page-table semantics and real hardware device performance; no game EXE or Rockstar files were used.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ProhorovIlja--NativeX-Runtime#16
No description provided.