Add an end-to-end probe for guest memory above the host address limit

This commit is contained in:
maxjivi05 committed 2026-12-03 21:28:02 -05:00
1 parent 15b5d46f70
commit 46e36d95a3
3 files changed
+117 -1

No files matched your search

+3 -1
View File
@@ -29,7 +29,9 @@ game in Steam always runs it under FEX.
## Why the x86-64 build needs its own Wine patches
Android kernels use 39-bit user address spaces. Easy Anti-Cheat's launcher maps fixed memory at
`0x7001_0000_0000`, which FEX serves from emulated guest pages (`tools/fex/patches/0027`). The x86-64 Wine
`0x7001_0000_0000`, which FEX serves from emulated guest pages (`tools/fex/patches/0027`). FEX claims such mappings only on
hosts with LSE atomics; elsewhere the map fails as in stock FEX. `tools/fex/probes/guest-high-memory.c`
checks loads, stores, atomics, iovec system calls, `madvise` and code written through a high alias. The x86-64 Wine
in DroidDeck-Proton carries `ntdll-fixed-allocations-above-host-address-limit.patch` (fixed mappings above
the host limit go to the emulator) and `ntdll-keep-libc-in-native-syscall-dispatch-range.patch` (the
re-armed syscall user dispatch range keeps libc native). Stock x86-64 Proton stops after "Hack native