HLE: identify DirectStorage physical page write failures #329

Open
avt0m4t48 wants to merge 3 commits from upstream-pr/329 into main
avt0m4t48 commented 2026-11-24 23:34:46 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-24T23:34:46Z.


Refs #268.

DirectStorage's terminal physical-page write warning reports the unknown page ID, an invalid page range, or the Win32 mapping or commit error captured at the failure site. The branch includes main's new buffered-write retry behavior. If it exhausts its retries, it logs the retry count and the final attempt's specific error in the same warning. The request still reports E_INVALIDARG.

On the updated head, seven source-built checks passed using the production destination and physical-memory logic with simulated Win32 calls. With retries off, the original five checks cover direct writes, fallback, missing pages, map failure and commit failure. With two retries enabled, one check verifies a transient write recovers and logs the number of attempts. Another verifies a map error followed by commit errors reports the final commit error. The diagnostic assertion for the final attempt failed on main. Windows MSVC HLE and GPU test targets type-checked with warnings denied.

Native Windows error injection and the cutscene symptom remain unverified. AI-assisted using Codex.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6593597812 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/329). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-24T23:34:46Z. --- Refs #268. DirectStorage's terminal physical-page write warning reports the unknown page ID, an invalid page range, or the Win32 mapping or commit error captured at the failure site. The branch includes main's new buffered-write retry behavior. If it exhausts its retries, it logs the retry count and the final attempt's specific error in the same warning. The request still reports E_INVALIDARG. On the updated head, seven source-built checks passed using the production destination and physical-memory logic with simulated Win32 calls. With retries off, the original five checks cover direct writes, fallback, missing pages, map failure and commit failure. With two retries enabled, one check verifies a transient write recovers and logs the number of attempts. Another verifies a map error followed by commit errors reports the final commit error. The diagnostic assertion for the final attempt failed on main. Windows MSVC HLE and GPU test targets type-checked with warnings denied. Native Windows error injection and the cutscene symptom remain unverified. AI-assisted using Codex.
avt0m4t48 commented 2026-11-25 15:08:30 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T14:11:16Z.


Merged 0b0074e into this branch at 2014383. The resolution preserves the new retry counters and page-written notifications and adds the final write error to the terminal warning.

The seven simulated host-error controls still pass, including a successful retry and an exhausted sequence where the final error differs from the first. Native Windows also passed all 14 DirectStorage tests and 12 physical-memory tests. The native suite exercises source-built requests and page mappings. Host mapping/commit errors were injected in the separate simulation.

Exact-head Windows run

AI-assisted using Codex.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7164890527 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/329#issuecomment-7164890527). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-25T14:11:16Z. --- Merged `0b0074e` into this branch at `2014383`. The resolution preserves the new retry counters and page-written notifications and adds the final write error to the terminal warning. The seven simulated host-error controls still pass, including a successful retry and an exhausted sequence where the final error differs from the first. Native Windows also passed all 14 DirectStorage tests and 12 physical-memory tests. The native suite exercises source-built requests and page mappings. Host mapping/commit errors were injected in the separate simulation. [Exact-head Windows run](https://github.com/avt0m4t48/victory-fork/actions/runs/45630281568) AI-assisted using Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/329:upstream-pr/329'
git switch 'upstream-pr/329'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/329'
git switch 'upstream-pr/329'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/329'
git switch 'upstream-pr/329'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/329'
git switch 'main'
git merge --squash 'upstream-pr/329'
git switch 'main'
git merge --ff-only 'upstream-pr/329'
git switch 'main'
git merge 'upstream-pr/329'
git push origin 'main'
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
fxceless/victory-fork!329
No description provided.