Test XMem mappings across caller-split placeholders #191
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!191
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-191"
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?
@feanorsun on GitHub · 2026-11-26 11:03 UTC · original
feanorsun:test/xmem-caller-split-placeholders→main· +73 −0 · 1 files · 1 commits · openRefs #38
physical_pages_map_alias_and_unmapfirst maps a three-page view, then removes its middle page. The mapper splits placeholders as needed. This test changes the order: the caller splits a single 320 KiB reservation into five adjacent 64 KiB placeholders before the first map. It checks all fourVirtualFreesplit results and queries each placeholder's allocation base, size and reserved state.The test maps one page from the same five-page physical allocation into each slice through
XMemMapPhysicalPages. It checks each returned address, verifies the view is committed and read-write, and writes a different marker to each slice. Later maps preserve earlier markers and the boundaries of slices still reserved. A null page array unmaps the middle slice. It returns toMEM_RESERVEwhile the other four remain mapped with their original values. The test then releases its views, placeholders and physical pages.The current implementation passes. This PR adds regression coverage for ordinary
PAGE_READWRITEviews only. It changes no production code.Windows verification
Each full test name was listed first using
-- --exact --listand returned one test. The commands below used the local Cargo cache and CPU memory APIs. The new test passed twice in separate processes, and the two neighboring tests each passed once (4 executions, 0 failures).@kilolimaVI on GitHub · 2026-11-26 19:13 UTC · original
Tested locally on Windows 11 (Ryzen 7 8845HS / Radeon 780M, pinned toolchain 1.98.1):
cargo test -p victory-hle --lib xmem: all pass, including the newphysical_pages_map_caller_split_placeholdersvictory-hlelib suite 10 times in a row (parallel, default threads): 0/10 failures, so no interference with the other tests that map memoryBranch is 14 commits behind main; tested as-is.
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.