diff options
| author | Dimitar Pavlov <360593571+azsekazvamdimitar@users.noreply.github.com> | 2026-11-25 15:39:43 +0200 |
|---|---|---|
| committer | Dimitar Pavlov <360593571+azsekazvamdimitar@users.noreply.github.com> | 2026-11-26 11:18:19 +0200 |
| commit | 49a0b69fcdb80db1f2a44ce7ca0ab8dfdec1e403 (patch) | |
| tree | dd53c9909834cbfeec85e7cbd188595c8a2d9931 /runtime/src | |
| parent | a73a57e1339be072baf5522351c8ec7f1482b56b (diff) | |
d3d12: slot-133 shadows guard aliased title pages at every address instead of copying them each submission (RT-SHADOW-ALIAS-GUARD)
A page xmem maps at two addresses was copied whole at every refresh, since
a guard on one view doesn't fault a write through the other: about 1 GB a
submission after the story load on a retail boot. ShadowPages now arms the
geometry watch's cells of each aliased 64 KiB block at every address it is
mapped and copies a block only when a cell's version moved. xmem tells the
cells of a mapping change after updating the peers, and of list value
writes made through the section.
AI-assisted; tested under WineHQ 11.22 and GE-Proton11-14 on an RTX 3090
(NVIDIA 590.48.01).
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/title_page_watch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/src/title_page_watch.h b/runtime/src/title_page_watch.h index 9d0a2ccfc..44a19cb1b 100644 --- a/runtime/src/title_page_watch.h +++ b/runtime/src/title_page_watch.h | |||
| @@ -9,7 +9,8 @@ | |||
| 9 | // | 9 | // |
| 10 | // 1. Aliases (title_page_aliases). xmem maps one physical page at as many VAs as the title asks | 10 | // 1. Aliases (title_page_aliases). xmem maps one physical page at as many VAs as the title asks |
| 11 | // (XMemMapPhysicalPages): a write through one VA changes what the others read without touching them. xmem | 11 | // (XMemMapPhysicalPages): a write through one VA changes what the others read without touching them. xmem |
| 12 | // reports each 64 KiB page mapped at more than one address; a shadow copies those at every submission. | 12 | // reports each 64 KiB page mapped at more than one address; a shadow guards those at every address with the |
| 13 | // geometry watch's cells (title_geometry_watch.h), or copies them at every submission while it can't. | ||
| 13 | // | 14 | // |
| 14 | // 2. Kernel writes (kernel_writes). A read-only page makes ReadFile fail with ERROR_NOACCESS instead of faulting | 15 | // 2. Kernel writes (kernel_writes). A read-only page makes ReadFile fail with ERROR_NOACCESS instead of faulting |
| 15 | // into a user-mode handler. The file shims (read_file and the rest, below) pin the destination before the kernel | 16 | // into a user-mode handler. The file shims (read_file and the rest, below) pin the destination before the kernel |