Skip to content

series: rebase onto FEX-2611 and take the offline code cache fixes (gn-6) - #9

Merged
utkarshdalal merged 1 commit into
gamenativefrom
fex-2611-with-code-cache
Nov 6, 2026
Merged

utkarshdalal merged 1 commit into
gamenativefrom
fex-2611-with-code-cache

Conversation

@utkarshdalal

Copy link
Copy Markdown

Moves the series from FEX-2610 to FEX-2611 and folds in the seven offline code cache patches from #7 (which this supersedes). 12 patches, SERIES_VERSION 6. The regenerated series applies with plain git am on a fresh FEX-2611 checkout and the tree matches the 3-way result byte for byte.

What changed at the rebase:

  • 0002 (LUT size load) and 0007 (kept guest loads) are gone: FEX#6021 and FEX#6069 are in 2611.
  • FEX-2611 delivers JIT-raised guest faults on arm64ec straight to a SynchronousExceptionHandler (27cfd41, 07abec3) instead of trapping with hlt/brk. That makes tarikbc's trapless path in 0003 redundant, so it is dropped together with FEX_EXP_FASTTRAP; the fast raise into KiUserExceptionDispatcher stays and now hangs off upstream's RaiseException.
  • The same upstream change bypasses the host exception path where dmage22's stale NoExec retry lived, so a NoExec stub fault would have reached the guest unretried and Overwatch's loader would spin again. 0001 now splits the retry into DropStaleNoExecFault (state already synced) and calls it from both the host path and the synchronous handler, re-entering the dispatcher through a small EnterDispatcherFillSRA thunk in Module.S.
  • Upstream now reports the first unfetched byte for partial decodes (511f583), so 0001's VirtualQuery page heuristic in HandleGuestException is removed.
  • The cache patches (0006-0012) applied without changes. The package ships FEXOfflineCompiler32/64.exe in system32 as in Fix the offline code cache on WoW64 and ship the offline compilers #7.

Not yet run on a device. The two 2611-specific pieces that need a check are the synchronous-path NoExec retry (D2R or Overwatch 2) and fast raise on top of upstream's handler (AoE IV).

…n-6)

Upstream merged the NtDllRedirectionLUTSize load (FEX#6021) and the kept guest loads
(FEX#6069), so 0002 and 0007 are dropped. FEX-2611 also delivers JIT-raised guest faults on
arm64ec without a host trap and passes the partial-fault address itself, so 0001 loses its
VirtualQuery heuristic and hooks its stale NoExec retry into the new synchronous handler, and
0003 keeps only the fast raise (FEX_EXP_FASTTRAP is gone).

The seven code cache patches from #7 follow as 0006-0012, and the package ships
FEXOfflineCompiler32/64.exe in system32.
@utkarshdalal
utkarshdalal merged commit c875b4a into gamenative Nov 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant