Allow package child to pin external providers until exit #950

Manually merged
github merged 2 commits from gh-pr/950/head into gh-pr/950/base 2026-11-26 22:30:37 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 18:27 UTC · original
R0Y00:codex/pe-pin-external-providers → main · +56 −2 · 4 files · 2 commits · merged 2026-11-23 18:49 UTC

Refs #870

Allow the package child to pin explicitly selected external providers for its process lifetime. Validate the provider bindings before pinning, and retain the existing behavior for ordinary shims.

Windows Release verification: built pe_map and cpu_cookie_exe, then ran ctest --preset release --no-tests=error -R '^cpu_package_shim_lifetime$'. The source-built EXE returned 42 both times. The ordinary provider unloaded and the pinned provider remained mapped until process exit. 1/1 passed.

**@⁠R0Y00** on GitHub · 2026-11-23 18:27 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/950) `R0Y00:codex/pe-pin-external-providers` → `main` · +56 −2 · 4 files · 2 commits · merged 2026-11-23 18:49 UTC Refs #870 Allow the package child to pin explicitly selected external providers for its process lifetime. Validate the provider bindings before pinning, and retain the existing behavior for ordinary shims. Windows Release verification: built `pe_map` and `cpu_cookie_exe`, then ran `ctest --preset release --no-tests=error -R '^cpu_package_shim_lifetime$'`. The source-built EXE returned 42 both times. The ordinary provider unloaded and the pinned provider remained mapped until process exit. 1/1 passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:30:35 +00:00
github manually merged commit 39643ec9cf into gh-pr/950/base 2026-11-26 22:30:37 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 18:33 UTC · original

I checked the package lifetime change and the CMake integration with #914. On Windows Release, cpu_package_shim_lifetime and cpu_native_load_dispatch both ran and passed. Additional local controls verified that a preflight with the pin flag leaves the provider unloaded and that an unused pin name is rejected before any of the requested modules are pinned. The runner releases ordinary provider references, while the selected provider stays mapped until the isolated child exits. Callers still need to quiesce any provider calls into guest code before returning. The latest update carries the CMake fix and leaves the runner and fixture unchanged.

**@⁠R0Y00** on GitHub · 2026-11-23 18:33 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/950#issuecomment-7110330261) I checked the package lifetime change and the CMake integration with #914. On Windows Release, cpu_package_shim_lifetime and cpu_native_load_dispatch both ran and passed. Additional local controls verified that a preflight with the pin flag leaves the provider unloaded and that an unused pin name is rejected before any of the requested modules are pinned. The runner releases ordinary provider references, while the selected provider stays mapped until the isolated child exits. Callers still need to quiesce any provider calls into guest code before returning. The latest update carries the CMake fix and leaves the runner and fixture unchanged.
This discussion has been locked. Commenting is limited to contributors.
No description provided.