Repository navigation
kernelx: implement XMemIsToolsMemAvailable and route xmem.dll - #563
Conversation
4a4aaf5 to
70f9fce
Compare
|
NVIDIA run, since Not tested lists NVIDIA GPUs. Tested
Not tested
AI use
|
|
Test run of Tested
Review: Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Diff check on
Next step to unblock merge: Please rebase onto current |
…ility - kernelx: keep plain XMemVirtualAlloc/physical fallbacks below the 40-bit VA ceiling via VirtualAlloc2 when available; stop large AllocateTitlePhysicalPages pools from stealing pre-committed coherent UMA; skip committing lazy/unmapped pages on read_physical_pages while ensuring lazy pages before writes; unmark freed lazy pages in FreeTitlePhysicalPages. (XMemIsToolsMemAvailable is already on main via xcl-dev#563.) - dstorage: refresh zero or stale (freed) physical page-table entries via read_own (xcl-dev#476/xcl-dev#509 safe) on write/read retry; extend the parallel decompression pool to handle physical-page destinations and supported BCPack requests. - gameinput & kbm: skip disconnected-pad XInput rumble stalls and deduplicate unchanged motor speeds; implement bounded reading history for GetNextReading / GetPreviousReading; extend XCL_PRESS_AT with triggers, sticks, LS/RS, and optional durations; add Z/C holdable bumper keys, require mouse capture and non-sizing for mouse buttons, and guard KBM mouse velocity against sub-0.5 ms zero-delta poll decay.
…ility - kernelx: keep plain XMemVirtualAlloc and alloc_physical_home plain fallbacks below the 40-bit VA ceiling via VirtualAlloc2 when available; skip committing lazy/unmapped pages on read_physical_pages while ensuring lazy pages before writes; unmark freed lazy pages in FreeTitlePhysicalPages. (Coherent fallback skip on sparse layouts is already on main via xcl-dev#2157; XMemIsToolsMemAvailable via xcl-dev#563.) - dstorage: refresh zero or stale (freed) physical page-table entries via read_own (xcl-dev#476/xcl-dev#509 safe) on write/read retry; extend the parallel decompression pool to handle physical-page destinations and supported BCPack requests. - gameinput & kbm: skip disconnected-pad XInput rumble stalls and deduplicate unchanged motor speeds; implement bounded reading history for GetNextReading / GetPreviousReading; extend XCL_PRESS_AT with triggers, sticks, LS/RS, and optional durations; add Z/C holdable bumper keys, require mouse capture and non-sizing for mouse buttons, and guard KBM mouse velocity against sub-0.5 ms zero-delta poll decay.
…ility - kernelx: keep plain XMemVirtualAlloc and alloc_physical_home plain fallbacks below the 40-bit VA ceiling via VirtualAlloc2 when available; skip committing lazy/unmapped pages on read_physical_pages while ensuring lazy pages before writes; unmark freed lazy pages in FreeTitlePhysicalPages. (Coherent fallback skip on sparse layouts is on main via xcl-dev#2157; XMemIsToolsMemAvailable via xcl-dev#563.) - dstorage: share execution-time physical page-list resolution (xcl-dev#1405 / xcl-dev#476 dest_on_stack + read_own live-list reread) across sequential execute() and the parallel decompression pool; extend parallel decompression to handle physical-page destinations and supported BCPack requests; refresh stale physical-page source lists via read_own. - gameinput & kbm: skip disconnected-pad XInput rumble stalls and deduplicate unchanged motor speeds; implement bounded reading history for GetNextReading / GetPreviousReading; extend XCL_PRESS_AT with triggers, sticks, LS/RS, and optional durations; add Z/C holdable bumper keys, require mouse capture and non-sizing for mouse buttons, and guard KBM mouse velocity against sub-0.5 ms zero-delta poll decay.
Implement
XMemIsToolsMemAvailableinkernelxand routexmem.dlltoKERNELX.On Xbox consoles, tooling/debug memory is exclusive to DevKits. In retail titles,
XMemIsToolsMemAvailable()always returns0(FALSE), matching the behavior of sibling tooling APIs inkernelx.rslikeToolingMemoryStatus. This resolves the final remaining stub imported by the retail title Scarlett package (game_scarlett_master.exe).What is in it
crates/xcl/src/hle/kernelx.rs: implementXMemIsToolsMemAvailablereturning 0 (FALSE) and add unit testcrates/xcl/src/hle/mod.rs: add"xmem.dll"toKERNELXroute listcrates/xcl/src/resolver.rs: add unit test verifyingxmem.dllimports route toKERNELXTested
cargo test --workspace -- --test-threads=4: 673 passed, 0 failed, 37 ignoredSKIPPEDGPU tests on adapter: nonegame_scarlett_master.exe):xcl inspectreduced unresolved imports from 1 stub to 0 stubs (587/587 imports resolved)Regression run
Not tested
XMemIsToolsMemAvailableAI use