On 04/12/2017 09:33 AM, Markus Armbruster wrote: >>> Additional ways to terminate QEMU: HMP and QMP command "quit", and the >>> various GUI controls such "close SDL window". >> >> Good points. I have no idea what exit path those take (if they >> raise(SIGINT) internally, it's quite easy - but if they go through some >> other exit path, then I'll need to wire in something else). > > Chasing down all host-initiated terminations looks like a fool's errand > to me. But if we can reliably detect guest-initiated, we don't have to, > do we?
I don't know if we can reliably detect guest-initiated. Host-signal initiated was easy because of the modification to a global variable. But hopefully I'll find some easy common point, and maybe have to add another global variable to track whether we went through that point (as the reporting point is different than the request point). At any rate, this conversation is useful, to make sure I find the right place. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
