Repository navigation
Conversation
Kernel-native reads cannot invoke the first-touch handler. A valid untouched lazy page table or memory source therefore failed with E_ACCESS_VIOLATION. Prepare only still-reserved whole pages already tracked as lazy, then retry the normal read or validation, including when another thread already committed them. Other reservations and committed protections remain unchanged. Six CPU regressions cover deferred memory sources, owned page-array snapshots across a page boundary, ordinary unreadable reservations, explicit readonly/noaccess/guard protection, partially committed pages, and a deterministic competing-first-touch race. The two positive cases fail on official dd2ae9a without the fix. Focused DirectStorage tests: 19 passed; existing lazy tests: 2 passed. No GPU or retail run in this change; relationship to the observed retail storage failures remains unproven.
|
Tested I tested a legal cross-page memory request through XCL’s DirectStorage queue, including enqueue, submit, worker execution, and the completion status. The first 48 bytes came from committed memory filled with
Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug. This was a CPU-side synthetic check. Not tested Retail streaming, GPU timing, and the full workspace suite. AI use Codex with GPT-6.2 Sol wrote the scratch fixture, ran the tests, and drafted this report. |
Test report: #671 under Wine (Linux, NVIDIA): one new test fails on Wine's
|
protect |
copy_from |
snapshot_page_array |
Protect afterwards |
|---|---|---|---|
PAGE_READONLY (0x2) |
Ok, zeros |
Ok([0]) |
0x2 |
PAGE_NOACCESS (0x1) |
Err, destination untouched |
Err(E_ACCESS_VIOLATION) |
0x1 |
PAGE_READWRITE | PAGE_GUARD (0x104) |
Err, destination untouched |
Ok([0]) |
0x4 |
So only the guard-page case differs: ReadProcessMemory(GetCurrentProcess(), …) under this Wine reads a guard page and the guard is gone afterwards, so the test's last assert (Protect == protect) would fail too. read_own on main makes the same ReadProcessMemory call; the PR only adds the retry around it, so this looks like a Wine difference that the new test exposes, not something the PR changes. I didn't check other Wine versions.
GTA VI 1.0.2.1 (my own dump; 60 s runs with scripts/linux/smoke.sh from #257, XCL_NETWORK=0, alternating base / PR / PR / base)
| build | frames shown | DirectStorage requests / MB / failed | removals / crashes |
|---|---|---|---|
dd2ae9a |
960, 1012 | 9764 / 650 / 0; 9767 / 650 / 0 | 0 / 0 |
d9a96fd |
1014, 985 | 9767 / 650 / 0; 9767 / 650 / 0 | 0 / 0 |
xcl-smoke v1
commit: dd2ae9a70af5eb5aad60f02d86e386b72abe1e95
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 960 (PresentX 960)
presents per 2 s (last 3): 42 49 0
device removals: 0
crashes: 0
peak commit: 0 MB
xcl-smoke v1
commit: d9a96fd1fd57314b516b452d7eb1ef7315b698e9
gpu: NVIDIA GeForce RTX 3060
title: GTA6.Xbox.v1.0.2.1
seconds: 60
exit: 0x0
frames shown: 1014 (PresentX 1014)
presents per 2 s (last 3): 56 2 21
device removals: 0
crashes: 0
peak commit: 0 MB
(The first pair. peak commit: 0 MB is XCL reading 0 MB committed under Wine, see #257.) GTA VI's requests all succeed on both builds, so these runs don't show whether it ever hits the deferred-zero-page case.
Not tested
- Windows, AMD; other Wine versions for the guard-page case; the other test filters on this branch
AI use: Claude Code (Claude Opus 5.5) built both commits, ran everything above on the machine above and wrote this report. The blocks, counts and the panic are pasted from those runs. The account owner asked for test reports to be posted while they were away and has not reviewed this one.
|
Test run of Tested
Review: This run is on native Windows; the Wine failure reported above (Wine's 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. |
|
Native Windows retail-title data point for Tested
The PR removes the deferred physical-page failures this title hits. On the immediately preceding It does not remove the later world-loading stall on this machine: The local BCPack diagnostic filled unsupported blocks and reported those requests as successful; it is not proposed as a fix. Its purpose here was to isolate the remaining stall after both known DirectStorage failure classes were suppressed. The result supports Not tested
AI use OpenAI Codex with GPT-5 built the branches, ran the tests and title, analyzed the logs, and drafted this report. The account owner requested that the useful results be posted. |
DirectStorage could reject a valid zero-filled memory source or a physical-page table before its first CPU access. Native reads bypass XCL's first-touch handler.
What is in it
Tested
cargo test --locked --workspace -- --test-threads=4 --nocaptureon the PR head, debug, 696 passed, 0 failed, 41 ignored. Two GPU tests emittedSKIPPEDbecause this adapter lacks wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.E_ACCESS_VIOLATION. On d9a96fd all 19 DirectStorage tests and both existing kernelx lazy-page tests passed.Regression run
Official main:
PR head:
Not tested
AI use
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord