Skip to content

VFS: treat MAXIMUM_ALLOWED opens as writes - #2850

Open
guinpereira wants to merge 1 commit into
xcl-dev:mainfrom
guinpereira:fix/vfs-maximum-allowed
Open

guinpereira wants to merge 1 commit into
xcl-dev:mainfrom
guinpereira:fix/vfs-maximum-allowed

Conversation

@guinpereira

@guinpereira guinpereira commented Nov 26, 2026 •

Copy link
Copy Markdown

Fixes #2682.

Adds MAXIMUM_ALLOWED (0x02000000) to WRITE_ACCESS so such opens take the write/overlay branch instead of bypassing it.

What is in it

  • crates/xcl/src/vfs.rs: MAXIMUM_ALLOWED added to WRITE_ACCESS.

Tested

  • Windows 11, NVIDIA GeForce RTX 5060 Ti, Rust stable (x86_64-pc-windows-msvc), debug build.
  • cargo test -p xcl --lib -- --test-threads=4: 1315 passed, 4 failed (GPU OOM in dxil fuzz tests, environment), 27 ignored.
  • cargo build -p xcl: clean.

Regression run

xcl-smoke v1
commit: 05adb5a9cfc718119c0c9c097365983e67982d05
gpu: NVIDIA GeForce RTX 5060 Ti
title: gta6
seconds: 60
exit: 0x0
frames shown: 1043 (PresentX 1043)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15536 MB

Reference run on the author's local main (05adb5a). A run on ivall/xcl main and on this PR's head commit is still pending (cold shader cache crashes the title's startup precompile on this machine).

Not tested

  • Smoke on ivall/xcl main baseline and on this PR's head commit (pending, see above).
  • A real MAXIMUM_ALLOWED open against the overlay not exercised here.

AI use
OpenCode, Beam Free - drafted the change; smoke run and review by the author.

rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 26, 2026
…e tags

Scan: upstream/main still 8b957be (is-ancestor, zero fallout);
per-PR probe xcl-dev#2832..xcl-dev#2850 + spot: xcl-dev#2832-34 pins hold, xcl-dev#2835+ missing.
Triage index Most-actionable items 1-5 verified LANDED in tree
(cae046e/f0f9ea34/27d80dbd/trio/e1bec690+52e9014e); fixed there.
Gates: both checks 0 errors, lib 780/0/1, e2e 12-GPU-only,
retail HOLDS (SIGSEGV exe+0x2237320).
rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VFS: a MAXIMUM_ALLOWED open of a game file is treated as a read and bypasses the overlay

1 participant