kernelx: preserve explicitly committed physical pages on unmap #928
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/934"
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 Babyhamsta on 2026-11-24T08:43:42Z.
A Windows
VirtualAlloccommit can populate a lazy physical-page mapping without invoking XCL's lazy fault handler. Unmapping then discards the bytes as if the page were untouched.What is in it
Tested
cargo test --workspace --offline --locked -- --test-threads=4reported 718 passed, 0 failed, 41 ignored. Two of the reported passes printedSKIPPEDfor no wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.Regression run
Both clean builds ran the upstream smoke script offline for 60 seconds with fresh private data and separate cold DXIL caches. An earlier pair with copied saves hit the same startup breakpoint on both builds, so the fresh-profile pair below is the gate.
Main
This PR
Not tested
AI use
Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T08:56:59Z.
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean
main@beaa245(713 passed, 0 failed, 41 ignored on this box):Two more passing tests than main: preserving explicitly committed physical pages on unmap is exercised and green.
Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T10:37:42Z.
Heads-up: this branch no longer merges cleanly.
Rebuild today:
pull/934/headonto current main hits a merge conflict (kernelx page-table code; main moved through the sparse/mapping work since the branch was cut). CI is Windows-only and stopped at the conflict, so nothing else covers it here. Untested until rebased; I can run it on RDNA3/Wine after that.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 DavidM1911 on 2026-11-25T09:17:20Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main(crates/xcl/src/hle/kernelx.rs) — needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:31:25Z.
Triage (#1607) – head
54ba014No open or merged PR makes the same change. main's
unmap_awaystill returns early whenlazy::unmarkis true and drops a page the title committed itself. #1221 (merged), #2544 and #3074 touch other paths of unmap. The PR conflicts heavily with main's kernelx.rs (pagelog,page_placed,release_at,away.ready), so it needs a rebase. Note: a failingunmap_awaynow abortsmap_pagespart-way, after earlier pages were already unmapped.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.