kernelx: preserve explicitly committed physical pages on unmap #934
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!934
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Babyhamsta on GitHub · 2026-11-24 08:43 UTC · original
Babyhamsta:kernelx/physical-unmap-content→main· +159 −18 · 3 files · 1 commits · openA 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
@dcastell1 on GitHub · 2026-11-24 08:56 UTC · original
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.
@SlopTart on GitHub · 2026-11-24 10:37 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-25 09:17 UTC · original
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.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.