hle(xmem): export VirtualQuery and VirtualProtect hooks when VICTORY_LAZY_VIEWS=1 #3085
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3085
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3085"
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?
@RanoGames on GitHub · 2026-11-29 19:55 UTC · original
RanoGames:fix/xmem-lazy-views-query-hooks→main· +26 −2 · 1 files · 1 commits · closed without mergingWhat it changes
Fixes
xmem::module()incrates/victory-hle/src/modules/xmem.rs:title_virtual_queryandtitle_virtual_protectcallmaterialize_for(..., Touch::TitleCall)soVirtualQueryandVirtualProtectmaterialize lazy host-placeholder views instead of letting the title observeMEM_RESERVEor fail protection changes.xmem::module()previously only exportedVirtualQueryandVirtualProtectwhenVICTORY_SOFT_VIEWSwas set (!= "0"), leaving them unbound to the host whenVICTORY_LAZY_VIEWS=1was used withoutVICTORY_SOFT_VIEWS.exports_query_hooks(soft, lazy)/module_with(hook_queries)soVirtualQueryandVirtualProtectare exported wheneverVICTORY_SOFT_VIEWS != "0"orVICTORY_LAZY_VIEWS == "1".modules::xmem::tests::lazy_views_export_virtual_query_and_virtual_protect_without_soft_views.How it was tested
xmemexport fix)VICTORY_LAZY_VIEWS=1andVICTORY_SOFT_VIEWSunset (or"0"),xmem::module()did not exportVirtualQueryorVirtualProtect.xmem::module()exports both hooks forVICTORY_LAZY_VIEWS=1as well asVICTORY_SOFT_VIEWS != "0".cargo testpassed for the crates it touches: yes (cargo test --locked -p victory-hle --lib -- modules::xmem::tests --test-threads=1: 44 passed, 0 failed, 1 ignored;cargo xtask policy --stagedpassed)Checked for overlap
VICTORY_LAZY_VIEWS,title_virtual_query, andtitle_virtual_protect(only unrelated #2390, #1492, #1014 touchedtitle_virtual_protect).5b65dfd44dto56e62cca8ePull request closed