HLE: skip redundant commits when aliasing physical pages #2229

Closed
Chezzuss wants to merge 1 commit from upstream-pr/2231 into main
Chezzuss commented 2026-11-25 08:26:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Chezzuss on 2026-11-25T08:26:38Z.


CopyPageMappingsBatchX can map a page that is already committed in the pool view. The alias maps the same section offset, so it can skip the extra VirtualAlloc(MEM_COMMIT) call. First mappings and partial-unmap restoration retain the current path.

The synthetic XMem test checks that the alias is committed, shares its bytes with the source, and makes zero extra commit calls. All 10 XMem tests passed locally on Windows 11. The Windows CI check passed.

AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6600332779 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2231). Originally posted by [Chezzuss](https://github.com/Chezzuss) on 2026-11-25T08:26:38Z. --- CopyPageMappingsBatchX can map a page that is already committed in the pool view. The alias maps the same section offset, so it can skip the extra VirtualAlloc(MEM_COMMIT) call. First mappings and partial-unmap restoration retain the current path. The synthetic XMem test checks that the alias is committed, shares its bytes with the source, and makes zero extra commit calls. All 10 XMem tests passed locally on Windows 11. The Windows CI check passed. AI-assisted.
catminou4 commented 2026-11-25 09:05:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T08:48:28Z.

Review: COMMENTED


HLE: skip redundant commits when aliasing physical pages. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.

<!-- greyfinch-sync:Marvisak/VIctory:review:6054380211 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2231#pullrequestreview-6054380211). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T08:48:28Z. **Review:** COMMENTED --- HLE: skip redundant commits when aliasing physical pages. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
upstream-sync closed this pull request 2026-11-25 13:02:10 +00:00

Pull request closed

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
Marvisak/VIctory!2229
No description provided.