Skip to content

docs/xcl_compare: the executable's XMem/DStorage imports are measured - #8284

Open
wavehs wants to merge 1 commit into
ItsNotRexed:mainfrom
wavehs:docs/xcl-compare-measured-needs
Open

wavehs wants to merge 1 commit into
ItsNotRexed:mainfrom
wavehs:docs/xcl-compare-measured-needs

Conversation

@wavehs

@wavehs wavehs commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: #8186 (comment)

What and why

docs/xcl_compare.md ("Result, 2026-11-22") said the XCL test title's kernelx.dll/xmem.dll/xcrdapi.dll imports were "leads, not known needs" because "the executable is not available to measure". That is no longer true: docs/runtime_imports.md, "The retail executable (RT-5)", measures the executable's import table and the xmem call sites at 1cc6e3c1.

Checked against that section:

  • xmem.dll!XMemAlloc, XMemFree and XMemVirtualAlloc bind; the page records 23 measured XMemVirtualAlloc call sites, five of which commit 2 MiB pages.
  • XMemAllocatePhysicalPages, XMemFreePhysicalPages, XMemMapPhysicalPages and XMemMapPhysicalPagesScatter are served now (the note after the unimplemented table says the seven xmem.dll imports are served, so the dry run lists 23).
  • XCRDAPI.dll!DStorageGetFactory is in the measured, still unimplemented set.
  • TitleMemoryStatus, GetConsoleType, SetThreadName/GetThreadName and MFResetDXGIDeviceManagerX are not in the executable's measured table, so they stay leads.

The row now says which names are the game's real needs and which remain the XCL title's alone. The kernelx.dll bindings are still not served; the same names under xmem.dll are. No other statement on the page changes.

Tested

macOS arm64 (Apple M3 Pro), Python 3.15.2, docs only, no GPU or game files:

AI-assisted: yes (an agent session).

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator rule here.)

The comparison row said the executable was not available to measure, so the XCL title's kernelx/xmem/xcrdapi imports were only leads. runtime_imports.md now measures the executable's import table and call sites: XMemAlloc/XMemFree/XMemVirtualAlloc bind, the four xmem physical-page calls are served, DStorageGetFactory is a measured unimplemented import; the kernelx-only names stay leads.

@tupacfan04 tupacfan04 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new xcl_compare.md row is correct, but it contradicts docs/xmem_exe_calls.md, which still describes the seven XMem imports as unshimmed and XMemVirtualAlloc as refusing every call.

  • docs/xcl_compare.md:74 now says the four XMem physical-page calls are served and the executable's XMemAlloc/XMemFree/XMemVirtualAlloc imports bind. That matches docs/runtime_imports.md:121-123,168, runtime/shims/xmem.cpp:721-727, and :316-324.
  • docs/xmem_exe_calls.md still says the opposite: :3-4 “Seven have no shim yet”; :20 XMemVirtualAlloc “refuses every one of these 23”; :21-24 the four physical-page imports are marked “no” for a shim; :29-30 XMemIsToolsMemAvailable/default allocators “no”; :53-56 every nonzero attribute word returns ERROR_NOT_SUPPORTED.

Both pages claim to be measured at 1cc6e3c1, so this is a direct cross-document contradiction, not a historical note. Update the “Shim at main 1cc6e3c1” column and the XMemVirtualAlloc paragraph, or explicitly mark xmem_exe_calls.md as a pre-shim snapshot; a consistency check between the two pages would catch future drift.

Checked: the anchor runtime_imports.md#the-retail-executable-rt-5 resolves to :127; the 23 XMemVirtualAlloc call sites match; the four physical-page names are correct and now served; XCRDAPI.dll!DStorageGetFactory is still unimplemented; TitleMemoryStatus, GetConsoleType, SetThreadName/GetThreadName and MFResetDXGIDeviceManagerX are not in the measured executable table. Docs/code-read only; no game files. AI-assisted (OpenCode).

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.

2 participants