D3D12.X: coherent UMA windows in a driver heap on NVIDIA (port of #2844 to nvidia-dev) #3003

Merged
Kalmarv merged 1 commit from upstream-pr/3003 into nvidia-dev 2026-11-28 00:30:52 +00:00
Kalmarv commented 2026-11-27 11:49:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-27T11:49:59Z.


Port of #2844 (merged on main) to nvidia-dev; the commit is #2844's change cherry-picked onto nvidia-dev a5e2d851 without conflicts. Part of #2688.

On NVIDIA the title's GPU code reads and writes the coherent UMA window through a heap opened with OpenExistingHeapFromAddress, and the GPU's loads and atomics on those imported pages are an order of magnitude slower than on a driver heap in the same host memory. The window becomes a driver CUSTOM write-back L0 heap mapped at its own address, so the title keeps its pointers. The measurements and the review are on #2844 (main: 0.62 -> 3.03 fps in the world on an RTX 5070 Ti, a replayed world frame 1,427 ms -> 165 ms of GPU time). Everything our team measured on nvidia-dev since (the first world picture on this branch, and every run after it) was on top of this change.

What is in it

  • hle/d3d12x/uma_driver.rs (new), with mod.rs, real.rs, host.rs, gpu/uma.rs: as in #2844. On by default for an NVIDIA adapter outside Wine; XCL_UMA_DRIVER=0 turns it off. Unit tests driver_windows_by_default_on_nvidia_outside_wine, failed_write_watch_does_not_release_the_original_window, failed_restore_stops_before_importing_an_unbacked_window.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74), Ryzen 9 9950X, Windows 11 Pro 26200, Rust 1.99.0 MSVC, debug tests, release smoke; DXC 1.9.2609 via XCL_DXC_DIR.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4 on 8d36887d: 1825 passed, 9 failed, 48 ignored. The same command on nvidia-dev a5e2d851: 1822 passed, 10 failed, 48 ignored.
  • Failed here and on a5e2d851 as well: async_compute_pso_registers_real_pso_and_not_standin, console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly, hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays, hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels, split_compute_prefers_the_offline_whole_pipeline, two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs.
  • Failed here only: hle::d3d12x::sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory.
    • a_tile_decommitted_and_committed_again_keeps_its_video_memory alone, 10 times on 8d36887d (cargo test -p xcl --lib a_tile_decommitted_and_committed_again_keeps_its_video_memory): 10 passed, 0 failed.
  • 26 SKIPPED: 8 no wave64; 1 const_mask, wave64: no wave64; 1 f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); 1 f16 arithmetic, wave64: no wave64; 1 f32 arithmetic, wave64: no wave64; 1 f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)); 1 f16 packed, wave64: no wave64; 1 f32 compares, wave64: no wave64; 1 mask_ff0_flbit, wave64: no wave64; 1 f64, wave64: no wave64; 1 f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)); 1 f32 conversions, wave64: no wave64; 1 integer arithmetic, wave64: no wave64; 1 f32 rounding, wave64: no wave64; 1 integer carries, wave64: no wave64; 1 f32 transcendentals, wave64: no wave64; 1 f32 three-source, wave64: no wave64; 1 no heap windows (opt-in: XCL_HEAP_WINDOWS=1); 1 no heap windows.
  • CI: Build and test (Windows, no GPU) is red on nvidia-dev itself and on every PR into it, this one included: the lib test process ends with 0x887a0020 in a sparse test on the runner's software adapter, with no test reported failed. #2837 fixes that test; nothing here touches it.

Regression run
150 s runs, same title, same env (XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=all XCL_DIRECT_SPLIT_INSTRUCTIONS=0 XCL_PSO_JOURNAL=0 XCL_DRED=1 XCL_GPU_WAIT_TIMEOUT_MS=120000, DXC 1.9), no switch of this PR set. The main run from a hard-link copy of our team branch's DXIL cache; the base and head runs from hard-link copies of one cache warmed on nvidia-dev a5e2d851 (on this branch the title starts after about 75-90 s of startup shader preparation, so 60 s would end inside it).

A commit of main (b49be183, the last one before the shader preparation screen of #2555):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 1917 (PresentX 1917)
presents per 2 s (last 3): 0 0 2
device removals: 0
crashes: 0
peak commit: 33080 MB

The base, nvidia-dev a5e2d851:

xcl-smoke v1
commit: a5e2d851a503fc0e04609f773ea53f2d2c4e3269
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 2464 (PresentX 2464)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 34597 MB

This PR's head:

xcl-smoke v1
commit: 8d36887d0545c1d2927302287a80e072e785d087
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 150
exit: 0x0
frames shown: 2164 (PresentX 2164)
presents per 2 s (last 3): 0 0 1
device removals: 0
crashes: 0
peak commit: 35489 MB

Not tested

  • AMD, Intel and Wine keep the import unchanged (not run here). A frame-rate A/B on nvidia-dev with and without this commit alone: our nvidia-dev runs all had it.

AI use

  • Claude Code (Claude Opus 5.5) ported the commit, ran the suite and the regression runs on the hardware above, and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5526122866 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3003). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-27T11:49:59Z. --- Port of #2844 (merged on `main`) to `nvidia-dev`; the commit is #2844's change cherry-picked onto `nvidia-dev` `a5e2d851` without conflicts. Part of #2688. On NVIDIA the title's GPU code reads and writes the coherent UMA window through a heap opened with `OpenExistingHeapFromAddress`, and the GPU's loads and atomics on those imported pages are an order of magnitude slower than on a driver heap in the same host memory. The window becomes a driver `CUSTOM` write-back L0 heap mapped at its own address, so the title keeps its pointers. The measurements and the review are on #2844 (main: 0.62 -> 3.03 fps in the world on an RTX 5070 Ti, a replayed world frame 1,427 ms -> 165 ms of GPU time). Everything our team measured on `nvidia-dev` since (the first world picture on this branch, and every run after it) was on top of this change. **What is in it** - `hle/d3d12x/uma_driver.rs` (new), with `mod.rs`, `real.rs`, `host.rs`, `gpu/uma.rs`: as in #2844. On by default for an NVIDIA adapter outside Wine; `XCL_UMA_DRIVER=0` turns it off. Unit tests `driver_windows_by_default_on_nvidia_outside_wine`, `failed_write_watch_does_not_release_the_original_window`, `failed_restore_stops_before_importing_an_unbacked_window`. **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (driver 610.74), Ryzen 9 9950X, Windows 11 Pro 26200, Rust 1.99.0 MSVC, debug tests, release smoke; DXC 1.9.2609 via `XCL_DXC_DIR`. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4` on 8d36887d: 1825 passed, 9 failed, 48 ignored. The same command on `nvidia-dev` `a5e2d851`: 1822 passed, 10 failed, 48 ignored. - Failed here and on `a5e2d851` as well: `async_compute_pso_registers_real_pso_and_not_standin`, `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly`, `hle::d3d12x::texture_upload::tests::gpu_parts_of_a_texture_go_up_and_the_rest_stays`, `hle::d3d12x::texture_upload::tests::pieces_hold_the_texels_of_their_levels`, `split_compute_prefers_the_offline_whole_pipeline`, `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`. - Failed here only: `hle::d3d12x::sparse::tests::a_tile_decommitted_and_committed_again_keeps_its_video_memory`. - `a_tile_decommitted_and_committed_again_keeps_its_video_memory` alone, 10 times on `8d36887d` (`cargo test -p xcl --lib a_tile_decommitted_and_committed_again_keeps_its_video_memory`): 10 passed, 0 failed. - 26 `SKIPPED`: 8 no wave64; 1 const_mask, wave64: no wave64; 1 f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); 1 f16 arithmetic, wave64: no wave64; 1 f32 arithmetic, wave64: no wave64; 1 f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's)); 1 f16 packed, wave64: no wave64; 1 f32 compares, wave64: no wave64; 1 mask_ff0_flbit, wave64: no wave64; 1 f64, wave64: no wave64; 1 f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's)); 1 f32 conversions, wave64: no wave64; 1 integer arithmetic, wave64: no wave64; 1 f32 rounding, wave64: no wave64; 1 integer carries, wave64: no wave64; 1 f32 transcendentals, wave64: no wave64; 1 f32 three-source, wave64: no wave64; 1 no heap windows (opt-in: XCL_HEAP_WINDOWS=1); 1 no heap windows. - CI: `Build and test (Windows, no GPU)` is red on `nvidia-dev` itself and on every PR into it, this one included: the lib test process ends with `0x887a0020` in a sparse test on the runner's software adapter, with no test reported failed. #2837 fixes that test; nothing here touches it. **Regression run** 150 s runs, same title, same env (`XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=all XCL_DIRECT_SPLIT_INSTRUCTIONS=0 XCL_PSO_JOURNAL=0 XCL_DRED=1 XCL_GPU_WAIT_TIMEOUT_MS=120000`, DXC 1.9), no switch of this PR set. The `main` run from a hard-link copy of our team branch's DXIL cache; the base and head runs from hard-link copies of one cache warmed on `nvidia-dev` `a5e2d851` (on this branch the title starts after about 75-90 s of startup shader preparation, so 60 s would end inside it). A commit of `main` (`b49be183`, the last one before the shader preparation screen of #2555): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 1917 (PresentX 1917) presents per 2 s (last 3): 0 0 2 device removals: 0 crashes: 0 peak commit: 33080 MB ``` The base, `nvidia-dev` `a5e2d851`: ``` xcl-smoke v1 commit: a5e2d851a503fc0e04609f773ea53f2d2c4e3269 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 2464 (PresentX 2464) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 34597 MB ``` This PR's head: ``` xcl-smoke v1 commit: 8d36887d0545c1d2927302287a80e072e785d087 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 150 exit: 0x0 frames shown: 2164 (PresentX 2164) presents per 2 s (last 3): 0 0 1 device removals: 0 crashes: 0 peak commit: 35489 MB ``` **Not tested** - AMD, Intel and Wine keep the import unchanged (not run here). A frame-rate A/B on `nvidia-dev` with and without this commit alone: our `nvidia-dev` runs all had it. **AI use** - Claude Code (Claude Opus 5.5) ported the commit, ran the suite and the regression runs on the hardware above, and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Decodere commented 2026-11-27 16:29:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T16:29:38Z.


Independent desktop NVIDIA verification of PR #3003 at head 8d36887d0545c1d2927302287a80e072e785d087 (1 commit; exact parent & merge-base: a5e2d851a503fc0e04609f773ea53f2d2c4e3269, ancestor of nvidia-dev).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted tests & build (8d36887d)

Command Result
cargo test --release -p xcl --lib -- --nocapture hle::d3d12x::uma_driver:: (3 consecutive runs) 2 passed; 0 failed; 0 ignored; 1727 filtered out × 3 (0.20s, 0.19s, 0.19s, 0 skipped; live RTX 4060 D3D12 device exercised failed_write_watch_does_not_release_the_original_window)
cargo test --release -p xcl --lib -- --nocapture gpu::uma:: hle::d3d12x::real::readback_routing_tests:: (3 consecutive runs) 23 passed; 0 failed; 0 ignored; 1706 filtered out × 3 (0.20s, 0.21s, 0.21s, 0 skipped)
cargo build --release -p xcl Clean build (2m 01s, exit 0, 0 new warnings in uma_driver.rs, uma.rs, or PR-touched lines of real.rs)

Paired quiet 60 s retail smoke (title: 29640639, XCL_PREPARE=0, XCL_NETWORK=0)

Exact parent & merge-base (a5e2d851a503fc0e04609f773ea53f2d2c4e3269, nvidia-dev ancestor):

xcl-smoke v1
commit: a5e2d851a503fc0e04609f773ea53f2d2c4e3269
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1513 (PresentX 1513)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14868 MB

PR #3003 (8d36887d0545c1d2927302287a80e072e785d087, default on NVIDIA — XCL_UMA_DRIVER unset):

xcl-smoke v1
commit: 8d36887d0545c1d2927302287a80e072e785d087
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1572 (PresentX 1572)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14777 MB

Runtime telemetry observed in xcl.log on RTX 4060 (621.14)

  • Driver CUSTOM L0 heap remapping succeeded on RTX 4060 (Ada, driver 621.14) without fallback:
    • D3D12.X: the coherent window at 0x700000000 (4095 MB) is a driver CUSTOM write-back L0 heap mapped at its address, write-watched (132 reservations, 0 pages kept, 0 KB, 371 ms)
    • 0 stays imported fallback warnings; UMA import check: ok, 1 window(s), 26516 µs; console buffers in UMA: Map = console address (0x7d2b10000).
  • Memory readings at ~58 s steady state (last memory: log line):
    • Base a5e2d851: 14823 MB committed (peak commit: 14868 MB), 6115 MB local, 4781 MB non-local (budget 6899 MB).
    • PR #3003 (8d36887d): 14712 MB committed (peak commit: 14777 MB), 6116 MB local, 4704 MB non-local (budget 6901 MB).

Limits of coverage

  • Both hle::d3d12x::uma_driver:: tests (driver_windows_by_default_on_nvidia_outside_wine and live-D3D12 failed_write_watch_does_not_release_the_original_window) and gpu::uma:: + readback_routing_tests:: (23/23, 0 skipped) passed 3/3, and the 60 s retail smoke confirmed live uma_driver::remake + GetWriteWatch operation on RTX 4060 (621.14, Windows 11 26200) with 0 device removals, 0 crashes, and steady 60 Hz pacing.
  • Both smokes were run with XCL_PREPARE=0 and XCL_NETWORK=0 on a single 60 s startup window (capped at 60 Hz vsync), so GPU-bound frame-time gains beyond startup and explicit XCL_UMA_DRIVER=0 / XCL_UMA_SHADOW=1 interaction runs were not separately measured.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7223325329 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3003#issuecomment-7223325329). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-27T16:29:38Z. --- Independent desktop NVIDIA verification of **PR #3003** at head `8d36887d0545c1d2927302287a80e072e785d087` (`1` commit; exact parent & merge-base: `a5e2d851a503fc0e04609f773ea53f2d2c4e3269`, ancestor of `nvidia-dev`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted tests & build (`8d36887d`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib -- --nocapture hle::d3d12x::uma_driver::` (3 consecutive runs) | `2 passed; 0 failed; 0 ignored; 1727 filtered out` × 3 (`0.20s`, `0.19s`, `0.19s`, `0` skipped; live RTX 4060 D3D12 device exercised `failed_write_watch_does_not_release_the_original_window`) | | `cargo test --release -p xcl --lib -- --nocapture gpu::uma:: hle::d3d12x::real::readback_routing_tests::` (3 consecutive runs) | `23 passed; 0 failed; 0 ignored; 1706 filtered out` × 3 (`0.20s`, `0.21s`, `0.21s`, `0` skipped) | | `cargo build --release -p xcl` | Clean build (`2m 01s`, exit `0`, `0` new warnings in `uma_driver.rs`, `uma.rs`, or PR-touched lines of `real.rs`) | ### Paired quiet 60 s retail smoke (`title: 29640639`, `XCL_PREPARE=0`, `XCL_NETWORK=0`) Exact parent & merge-base (`a5e2d851a503fc0e04609f773ea53f2d2c4e3269`, `nvidia-dev` ancestor): ``` xcl-smoke v1 commit: a5e2d851a503fc0e04609f773ea53f2d2c4e3269 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1513 (PresentX 1513) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14868 MB ``` PR #3003 (`8d36887d0545c1d2927302287a80e072e785d087`, default on NVIDIA — `XCL_UMA_DRIVER` unset): ``` xcl-smoke v1 commit: 8d36887d0545c1d2927302287a80e072e785d087 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1572 (PresentX 1572) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14777 MB ``` #### Runtime telemetry observed in `xcl.log` on RTX 4060 (`621.14`) - **Driver CUSTOM L0 heap remapping succeeded on RTX 4060 (Ada, driver `621.14`) without fallback:** - `D3D12.X: the coherent window at 0x700000000 (4095 MB) is a driver CUSTOM write-back L0 heap mapped at its address, write-watched (132 reservations, 0 pages kept, 0 KB, 371 ms)` - `0` `stays imported` fallback warnings; `UMA import check: ok, 1 window(s), 26516 µs`; `console buffers in UMA: Map = console address (0x7d2b10000)`. - **Memory readings at ~58 s steady state (last `memory:` log line):** - Base `a5e2d851`: `14823 MB` committed (`peak commit: 14868 MB`), `6115 MB local`, `4781 MB non-local` (budget `6899 MB`). - PR `#3003` (`8d36887d`): `14712 MB` committed (`peak commit: 14777 MB`), `6116 MB local`, `4704 MB non-local` (budget `6901 MB`). ### Limits of coverage - Both `hle::d3d12x::uma_driver::` tests (`driver_windows_by_default_on_nvidia_outside_wine` and live-D3D12 `failed_write_watch_does_not_release_the_original_window`) and `gpu::uma::` + `readback_routing_tests::` (`23/23`, `0` skipped) passed `3/3`, and the 60 s retail smoke confirmed live `uma_driver::remake` + `GetWriteWatch` operation on RTX 4060 (`621.14`, Windows 11 `26200`) with `0` device removals, `0` crashes, and steady 60 Hz pacing. - Both smokes were run with `XCL_PREPARE=0` and `XCL_NETWORK=0` on a single 60 s startup window (capped at 60 Hz vsync), so GPU-bound frame-time gains beyond startup and explicit `XCL_UMA_DRIVER=0` / `XCL_UMA_SHADOW=1` interaction runs were not separately measured. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
throny commented 2026-11-28 00:30:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T00:30:40Z.


merge-check claim
head: 8d36887d05

<!-- greyfinch-sync:ivall/xcl:comment:7230970458 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3003#issuecomment-7230970458). Originally posted by [throny](https://github.com/throny) on 2026-11-28T00:30:40Z. --- merge-check claim head: 8d36887d0545c1d2927302287a80e072e785d087
throny commented 2026-11-28 00:36:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T00:36:43Z.


A note after the merge (I had claimed this for a merge check a few minutes before it went in; the suite result follows on my claim). Comparing what is now on nvidia-dev (f8de0bf4) with #2844 as it stands on main (2c717a04), three things that main has are missing here. Verified by grep on both trees:

  1. When the remap runs. main remaps the coherent window before the guest starts: host.rs calls backend_before_guest(), which calls real::init_with_remap(true). Neither function exists on nvidia-dev; the window is opened from the title's device creation instead. remake copies the written pages out, frees the window and maps the driver heap in its place, so a title thread that touches the window in between would fault, and writes after the snapshot would be lost. That it can happen is reasoned from the code, not observed.
  2. A failed restore. On main, remake ends the process when the pages cannot be put back (TerminateProcess in uma_driver.rs). Here it returns an error and the caller falls back to opening the window, which then has no backing.
  3. f78e05bc ("the driver heap's grooming reserves stretches a smaller window fits in") is not an ancestor of nvidia-dev.

The description also names host.rs and a failed-restore test that the PR does not contain, so it looks like an earlier revision of #2844 was ported. Suggestion: a follow-up PR that brings these three over from main; I will merge-check and world-run it on this card (RTX 4080) as soon as it exists. For what it is worth, this card ran 16 world entries yesterday on a local build that contained this PR, with XCL_UMA_DRIVER=mixed:1536:1792; 2 of them ended in a device hang at world entry, which I have not tied to this.

AI use: Claude Code; the comparison was found by a Claude Opus 5.5 review and checked on both trees and written up by Claude Fable 5.2.

<!-- greyfinch-sync:ivall/xcl:comment:7231050031 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3003#issuecomment-7231050031). Originally posted by [throny](https://github.com/throny) on 2026-11-28T00:36:43Z. --- A note after the merge (I had claimed this for a merge check a few minutes before it went in; the suite result follows on my claim). Comparing what is now on `nvidia-dev` (`f8de0bf4`) with #2844 as it stands on `main` (`2c717a04`), three things that `main` has are missing here. Verified by grep on both trees: 1. **When the remap runs.** `main` remaps the coherent window before the guest starts: `host.rs` calls `backend_before_guest()`, which calls `real::init_with_remap(true)`. Neither function exists on `nvidia-dev`; the window is opened from the title's device creation instead. `remake` copies the written pages out, frees the window and maps the driver heap in its place, so a title thread that touches the window in between would fault, and writes after the snapshot would be lost. That it can happen is reasoned from the code, not observed. 2. **A failed restore.** On `main`, `remake` ends the process when the pages cannot be put back (`TerminateProcess` in `uma_driver.rs`). Here it returns an error and the caller falls back to opening the window, which then has no backing. 3. **`f78e05bc`** ("the driver heap's grooming reserves stretches a smaller window fits in") is not an ancestor of `nvidia-dev`. The description also names `host.rs` and a failed-restore test that the PR does not contain, so it looks like an earlier revision of #2844 was ported. Suggestion: a follow-up PR that brings these three over from `main`; I will merge-check and world-run it on this card (RTX 4080) as soon as it exists. For what it is worth, this card ran 16 world entries yesterday on a local build that contained this PR, with `XCL_UMA_DRIVER=mixed:1536:1792`; 2 of them ended in a device hang at world entry, which I have not tied to this. AI use: Claude Code; the comparison was found by a Claude Opus 5.5 review and checked on both trees and written up by Claude Fable 5.2.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3003
No description provided.