qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Implement -run-with exit-with-parent=on
@ 2025-10-03 13:24 Richard W.M. Jones
  2025-10-03 13:24 ` [PATCH v1 1/2] " Richard W.M. Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Richard W.M. Jones @ 2025-10-03 13:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, berrange

An earlier WIP version was posted here:
https://lists.gnu.org/archive/html/qemu-devel/2025-10/msg00309.html

In this version I have incorporated all of Daniel Berrange's feedback,
and I also tested the change on macOS.

The new second patch modifies the test suite to use the new flag
unconditionally, instead of open coding setting PR_SET_PDEATHSIG etc.
The test suite fails for me both before and after this patch in the
same way, so I assume this is nothing to do with the patch itself?

  4/405 qemu:func-quick+func-x86_64 / func-x86_64-bad_vmstate               ERROR            0.15s   exit status 1

Some points of note:

 - There's no way to find out if the qemu binary supports
   exit-with-parent=on except to try it.  Maybe this should be exposed
   somehow?

 - On macOS I wasn't able to find a satisfactory way to force
   shutdown, except calling 'qemu_system_killed' and pretending we'd
   been killed by SIGTERM (which does at least emulate what Linux &
   FreeBSD do).  I suppose it'd be nice if there was a "killed by
   parent" reason which also forced shutdown.

Rich.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-10-03 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 13:24 [PATCH v1 0/2] Implement -run-with exit-with-parent=on Richard W.M. Jones
2025-10-03 13:24 ` [PATCH v1 1/2] " Richard W.M. Jones
2025-10-03 14:12   ` Richard W.M. Jones
2025-10-03 13:24 ` [PATCH v1 2/2] tests/qtest: Use exit-with-parent=on in qtest invocations Richard W.M. Jones
2025-10-03 14:11 ` [PATCH v1 0/2] Implement -run-with exit-with-parent=on Richard W.M. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).