kernelx: GetModuleInformation answers for the images XCL mapped #877
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/883"
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?
Imported from ivall/xcl. Originally posted by mastrr9 on 2026-11-24T07:24:46Z.
Implements
K32GetModuleInformation/GetModuleInformationincrates/xcl/src/hle/kernelx.rsso titles, crash handlers, and stack walkers querying XCL-mapped executables and DLLs get validMODULEINFOinstead of Windows failing on modules it did not load:NULLresolves to the title executable), returnsERROR_INSUFFICIENT_BUFFERifcbis too small, and forwards all other modules/processes to Windows.K32GetModuleInformationandGetModuleInformation.hle::kernelx::tests::get_module_information_answers_for_mapped_images.Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled16cd6c162eca7028ff824e00434512d9e9177271cargo build --workspace: clean (no new warnings; only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 714 passed, 0 failed, 41 ignored (hle::kernelx::tests::get_module_information_answers_for_mapped_imagesok)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Regression run
Smoke run by @Toons29 in comment below: https://github.com/xcl-dev/xcl/pull/883#issuecomment-7151587505
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; the tester checked the blocks before posting.Not tested
AI use
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T09:34:03Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
fc60938onto main077ce40, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 710 passed, 7 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows. GetModuleInformation tests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:05:56Z.
Regression run of
806b69f1on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:53:41Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
upstream-sync referenced this pull request2026-11-25 17:06:01 +00:00
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T20:49:31Z.
NVIDIA test report for
806b69f(head as is, base85e3826), for #1607's "one more test report" list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, aftercargo build --workspace:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 867 passed, 0 failed, 42 ignored. The end-to-end title tests pass.hle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR doesn't touch it.no wave64on this card, 1 no heap windows, 1 PSO measurement that needs Developer Mode.AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
upstream-sync referenced this pull request2026-11-25 22:05:21 +00:00
upstream-sync referenced this pull request2026-11-26 04:07:14 +00:00
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:39:56Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:24:12Z.
Triage (#1607) – head
806b69fNo open or merged PR adds
GetModuleInformation/K32GetModuleInformationto kernelx; main still has neither export.The diff answers from
modules::find_mapped_by_base/main_moduleonly for this process (pseudo-handle or a real handle to it) and falls back to Windows' psapi otherwise; the unit test covers the mapped image, a real process handle, a short buffer and a Windows-loaded module. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-02T21:55:43Z.
merge-check
base:
5ad98adbc3head:
806b69f17bmerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3006 passed, 0 failed, 52 ignored; SKIPPED: 25 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing: none
review: read the whole diff (1 file, +78). One gap, not a blocker.
psapi.dllitself does not reach it. I resolved the imports with XCL's resolver in a scratch test (not pushed):K32GetModuleInformationfromkernel32.dll,kernelbase.dll,kernelx.dllandapi-ms-win-core-psapi-l1-1-0.dll: XCL's function;GetModuleInformationfrompsapi.dll: still Windows' own, becausepsapi.dllhas no route to kernelx. So it stays as on main. The doc comment onGetModuleInformationreads as if it were covered.Build and test (Windows, no GPU)run. It needs one before a merge.performance: none, only runs when a title asks.
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.