Files
qemu-reims-vgpu/include/chardev
Anees Iqbal e8f0178b15 🐛 End with _exit where reims-vgpu still holds a GPU device
rvg_quiesce_for_exit now answers whether QEMU may call exit(): false where
the library still holds a GPU device at the exit, quiesced or not, since its
runtime supports exit() with a device live on no driver (on an RTX 3090, 3 of
9 power-offs that exited after a quiesce that stopped everything in time
ended in SIGSEGV inside the NVIDIA driver's exit handler). The device is
held at the exit where its release did not run first: a quit of a stopped VM,
a shutdown action that pauses, a read of a display that kept the device, and
a let-go the library could not finish.

On false the device's cleanup notifier, and its exit handler for an exit()
that skips the cleanup, now run what exit() would run of QEMU's own, then
_exit: the exit notifiers (usb-host's return of host devices to their
drivers, a tap's down script, the pidfile's removal), the restore of the
terminal a stdio chardev took, and the flush of the C library's streams. To
call them, qemu_run_exit_notifiers is no longer static, and char-stdio gives
its term_exit as qemu_chr_stdio_term_exit. The warning on false is gone: the
library warns where a wait outlasted its bound, and the trace event says
what the answer was.
2026-11-19 06:50:11 -08:00
..
2026-10-13 17:22:48 +04:00
2020-09-09 09:27:09 -04:00
2020-10-15 11:14:40 +02:00