Files
reims-vgpu/tests/suite/generated/interplay_lifetime
Anees Iqbal 0d44fea30a 🐛 Keep QEMU alive when a guest process dies with work queued
A guest empties a task's object list when the process that owns it ends,
without waiting for the execs that process queued. On an x86-64 macOS 26
guest the icon services abort as they start (Metal's nil device
architecture, docs/qemu.md), and the host, still compiling pipelines for
earlier execs, reaches their last execs after the lists are gone. Most
lookups then fail and fault the exec, but two answered nil where nil ends
the process:
- A pipeline descriptor's function: Metal aborts on a render descriptor
  with no vertex function, and QEMU died at Setup Assistant on a new
  install (2 of 10 boots on an RTX 5080 Laptop GPU host). A function whose
  entry is empty now raises the function lookup's failure.
- A resource named by UseResources in a concurrent compute encoder, where
  Metal ends the process at a nil entry. Such a reference whose entry is
  empty now raises too. Serial encoders, barriers and the render lists
  keep the nil, which Metal skips.
The Vulkan platform ended the process at a nil entry of
useResources:count:usage:stages:, which nothing had measured on Metal.
Metal skips it (measured here), and so does the platform now.

reims-ctl adds dump-guest-core=off to the q35 machine on Linux hosts. With
guest RAM in the core, a crash took QEMU 26 s to go away (a 2.7 GB core)
while its window stayed frozen; with the option, 1 to 4 s. QEMU refuses
the option on macOS, so the vmapple command line is unchanged.

What the guest and host observe: an exec whose pipeline function, or whose
concurrent UseResources reference, has an empty entry faults instead of
ending the process. interplay_lifetime_held_pipeline_function_retyped is
recorded again; interplay_lifetime_emptied_resource and
interplay_lifetime_emptied_resource_render are new. Six boots of the new
install to Setup Assistant on the fixed builds kept QEMU alive, though
none reached an empty function entry. docs/qemu.md records the race's
measurements and why no value the host answers avoids the nil
architecture.
2026-10-13 01:24:15 +03:00
..