Known holes under Wine: a placeholder told by VirtualQuery when class 7 is not answered (#59) #200
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!200
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-200"
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?
@amine23012004 on GitHub · 2026-11-26 11:22 UTC · original
amine23012004:fix/wine-placeholder-fallback→main· +33 −1 · 1 files · 1 commits · openKnown holes under Wine: a placeholder told by
VirtualQuerywhen class 7 is not answered (#59)Problem. Wine answers
NtQueryVirtualMemoryclass 7 withSTATUS_INVALID_INFO_CLASS, sowatch::placeholderwas false for every block: no hole was ever known and each block was asked about at every asking — 13,000–23,000VirtualQuerycalls a frame behind Wine's single virtual-memory lock (#59).Fix. Only when class 7 fails with
STATUS_INVALID_INFO_CLASS, a block counts as a placeholder ifVirtualQuerysays it isMEM_RESERVE+MEM_PRIVATE+AllocationProtect == PAGE_NOACCESSover the whole block (the only protectionMEM_RESERVE_PLACEHOLDERtakes). Plain read-write orSEC_RESERVEreservations don't pass, so an ordinaryVirtualAlloccommit there is still seen. Windows answers class 7: unchanged there. One file,crates/victory-gpu/src/watch.rs.This is the version with @zocram4cc's correction from #59 (the first fallback made any
MEM_RESERVEpage a hole and broke 4watch::tests under Proton). Their measurements on Proton / RX 6900 XT: questions about holes 18,520 → 2 a frame, copies 49.4 → ~34 ms a frame;watch::under Proton 54 passed / 1 failed (holes_are_known_until_the_runtime_tells, which asserts a plainPAGE_NOACCESSreservation is not a placeholder — only class 7 can tell those apart).Verification. Windows CI on my fork: clippy
-D warnings+ default and diagnostics test suites green (fork PR #3, which also carries the LAND_ECHO change). I have no Wine rig: the Proton numbers above are zocram4cc's.Credit: Kayotic1337 (class-7 finding) and zocram4cc (measurements + correction), #59.
🤖 Generated with Claude Code
@flamme-demon on GitHub · 2026-11-26 22:05 UTC · original
Tested and working under Proton. With this PR the per-frame line says
0 questions about holesin every run here (about 15 runs of 5 to 12 minutes), where reports without it count thousands a frame (#59, #111). No regression seen.Setup: RX 7900 XTX (RDNA 3), Mesa RADV 26.2.4, Proton Experimental 20261112 with its wineserver rebuilt with the view tree, vkd3d-proton master
71cae09, Microsoft'sd3dcompiler_47; mainc9c932c+ #151, #166, #200, #201, #274; diagnostics build, Series S (VICTORY_UPSCALER=6). Linux runs in a KVM guest with the card passed through.Tested by Claude Code (Claude Opus 5.5) on my machine; I only watched the picture. No captures posted (asset policy).
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.