VFS: exempt xcl.exe and host tool dirs from console drive mounts #2091
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2101"
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 O5-7 on 2026-11-25T04:11:56Z.
Exempts
xcl.exe's own folder and configured host tool DLL folders (XCL_DXC_DIR,XCL_D3D12_DIR,XCL_OPUS_DIR) from console drive mounts in the host VFS, while ignoring blank entries and bare drive roots (own_foldersafety guard). Rebased onto currentmain(e429936c).What is in it
crates/xcl/src/vfs.rs: guardVfs::own_folderagainst bare drive roots (so passingD:\does not disable console mounts for the whole drive).crates/xcl/src/host.rs: collectcurrent_exe().parent()and trimmedXCL_DXC_DIR,XCL_D3D12_DIR,XCL_OPUS_DIRpaths intobuild_vfs, with testsconsole_drive_mount_exempts_host_tool_and_exe_foldersanddrive_root_or_blank_own_dir_does_not_disable_console_mount.Tested
32.0.15.9579), AMD Ryzen 7 9700X, Windows 11 Pro10.0.26100,rustc 1.100.0 (0ef1bc386 2026-11-09).cargo test -p xcl --lib host:: -- --nocapture --test-threads=1: 4 passed, 0 failed, 0 ignored (2027 filtered out), 0 skipped.cargo test -p xcl --lib vfs:: -- --nocapture --test-threads=1: 12 passed, 0 failed, 0 ignored (2019 filtered out), 0 skipped.cargo build --release -p xcl: clean build with 0 new warnings (26 pre-existing warnings onmain).title: 9cc6a39e, run withXCL_PREPARE=0per8617577bbecause cold shader preparation for 26,503 records exceeded the 120 s startup timeout):e9bd937dmatchedmaine429936ccleanly (894vs895frames shown,14441vs13711MB peak commit,0crashes,0device removals).Regression run
Not tested
cargo test --workspaceate9bd937d(onlyhost::andvfs::ran after rebasing ontoe429936c).xcl.exeorXCL_DXC_DIRresides on the same drive letter as a mounted console drive (this test layout uses separate folders, verified viaconsole_drive_mount_exempts_host_tool_and_exe_folders).e9bd937d.AI use
main, mergedhost::testswithmain, ran tests/builds/smokes, and drafted this description with Antigravity (Gemini 4 Neon).Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T05:16:13Z.
Full-suite run, since this PR has no test report yet. Tested exact head
46460b8(on its basecbc296a).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1144 passed, 0 failed, 44 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.console_drive_mount_exempts_host_tool_and_exe_folders,drive_root_or_blank_own_dir_does_not_disable_console_mount.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1155 passed, 0 failed, 46 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main6020a33too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-25T05:22:17Z.
A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with
main(1361 here; 1371 and 1356 on the twomainruns). Under Wine the game runs from aZ:path andxcl.exefrom another folder; the run started and ran normally with the exemption in place. The log has no line about the exemption, so I cannot tell which paths it applied to.Tested
x86_64-pc-windows-gnu.46460b8as it is (based oncbc296a) andmainf5c5bdf, no uncommitted changes. Retail title 1.0.2.1,scripts/linux/smoke.sh(#257) for 60 s, no input. Runs in order: main, this PR (with other PRs in between), main.Regression run
main (first run):
this PR:
The second
mainrun: 1356 frames,exit: 0x0, no device removal, no crash. Under Wine,peak commitreads 0 MB, so these blocks do not check memory.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T05:43:51Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T08:09:43Z.
Independent desktop NVIDIA verification of PR #2101 at head
7cb20ff53cd274d41f0ff9814ae1a1c8b14bcc19(1commit; exact parent & merge-base:b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
7cb20ff5)cargo test --release -p xcl --lib console_drive_mount_exempts_host_tool_and_exe_folders -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1337 filtered out× 3 (0.00s,0.00s,0.01s,0skipped)cargo test --release -p xcl --lib drive_root_or_blank_own_dir_does_not_disable_console_mount -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1337 filtered out× 3 (0.00s× 3,0skipped)cargo test --release -p xcl --lib vfs:: -- --test-threads=1(3 consecutive runs)12 passed; 0 failed; 0 ignored; 1326 filtered out× 3 (0.04s,0.04s,0.05s,0skipped)cargo test --release -p xcl --lib host:: -- --test-threads=1(3 consecutive runs)2 passed; 0 failed; 0 ignored; 1336 filtered out× 3 (0.00s,0.00s,0.01s,0skipped)cargo build --release -p xcl1m 48s, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):PR #2101 (
7cb20ff53cd274d41f0ff9814ae1a1c8b14bcc19):Runtime log observations (
xcl.log)9221log lines,0[ERROR]/ device-removal / panic lines (dxil_cache:460hits,0misses,0compilation failures;228background pipelines,0failures).19402 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample13992 MB committed by the process; video memory 6114 MB local, 4654 MB non-local.Limits of coverage
xcl.exe's own folder and configuredXCL_DXC_DIR/XCL_D3D12_DIR/XCL_OPUS_DIRtool directories from console drive mounts (while ignoring bare drive roots and blank paths) was directly verified via both new tests (3/3each),vfs::(12/12× 3), andhost::(2/2× 3).xcl.exeandXCL_DXC_DIRlive onC:rather than on the same drive letter as a mounted console drive, so the 60 s retail smoke confirms default-layout non-regression rather than an end-to-end live launch from a console-mounted drive letter.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T16:12:39Z.
Tested on AMD / Linux:
7cb20ff5(RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV; Ryzen 5 9600X, 32 GB; CachyOS; Proton Experimentalexperimental-11.0-20261112with vkd3d-proton masterec207194plus a local patch dropping thelpVtblchecks of command allocators and lists; DXC 1.9.2609.5; Rust 1.96.0,x86_64-pc-windows-gnudebug build, tests run under Wine)The head as it is (base
b49be183), withmainf9a0cb80the same session as the baseline.Tests (
XCL_REQUIRE_GPU=wave64)cargo test -p xcl --lib -- host:: --test-threads=1: 2 passed, 0 failed, 0 ignored (console_drive_mount_exempts_host_tool_and_exe_folders,drive_root_or_blank_own_dir_does_not_disable_console_mount).cargo test -p xcl --lib -- vfs:: --test-threads=1: 12 passed, 0 failed, 0 ignored.cargo test --workspace --no-fail-fast -- --test-threads=4with--skip compositor_blends_ui_plane_over_scene_plane --skip failed_restore_stops_before_importing_an_unbacked_window --skip grooming_leaves_a_window_under_1_gib_only_its_hole(here the first loses the RADV device, the other two run out of memory under Wine): lib 1301 passed, 9 failed, 27 ignored;mainf9a0cb80lib (--test-threads=1, same skips): 1323 passed, 9 failed, 27 ignored. All failures but one are amongmain's. The other,flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flight, is flaky under load here: run alone 3 times it passed every time on this head and onmain. The other binaries fail the same 3 tests as onmain(e2e,pls_quota,predication_e2e).d3d12_resource_and_sync: its fence and queue test ended the process here, as it does onmainand most other trees in this setup.Not tested
XCL_DXC_DIR/xcl.exeon a drive letter mapped to a console mountAI use
Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-28T04:48:16Z.
Review: COMMENTED
Rebased onto latest
main(e429936c) ine9bd937dand mergedhost::testscleanly. Re-verifiedhost::(4/4),vfs::(12/12), release build, and paired 60 s smoke (894vs895frames shown,0crashes,0device removals); updated PR description accordingly.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:23:11Z.
Triage (#1607) – head
e9bd937Update (rechecked against main
6bfb5c51): withdrawn from the close list; recommendation: keep open. This PR also exemptsXCL_OPUS_DIR, has tests and merges cleanly, while #1769 conflicts with main. Not a duplicate to close in #1769's favour.#1769 (opened earlier) makes the same change: host.rs passes xcl.exe's folder,
XCL_D3D12_DIRandXCL_DXC_DIRtoVfs::own_folder, andown_folderignores a bare drive root, with a test of both. This PR addsXCL_OPUS_DIRon top, which can go into #1769.host.rs:trim_dirreimplements the existinggpu::agility::clean_env_path, which #1769 reuses. TheBuild and testcheck of this head failed.#833 solves the same problem differently (it bypasses the VFS hooks while DXC loads).
Recommendation: close (duplicate of #1769).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-03T09:24:16Z.
merge-check
base:
16c2fd082ahead:
e9bd937d30merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3014 passed, 0 failed, 56 ignored (base: 3012 passed, 0 failed, 56 ignored, counted on
395405e4; only docs and scripts changed since); SKIPPED: 25, the same as base (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing: nonereview: read the whole diff (2 files, +108 -9). No blocking finding.
xcl.exe's folder:xcl.exeSo a game folder inside the exempt folder is still treated as the game's.
2) Low: the exemption covers the whole folder, for writes too. With
xcl.exeinD:\dataand "D:" mounted, the title's ownD:\data\...would reach the PC's folder instead of the game's. It needs a folder name that the title uses as well; a bare drive root is guarded and tested.3) Low:
trim_diris a second copy ofgpu::agility::clean_env_path(pub(crate)), with the same result for blank, padded and quoted values. Calling that one would be enough.4) #1769, the other PR for this, is closed as a duplicate.
5) Not tested: a retail title (none on this machine), AMD, a real launch with
xcl.exeor DXC on a mounted drive letter.performance: not measured. For a path on a mounted drive that is not under an earlier folder in the list, up to four more string prefix compares.
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.