From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coDLd-0000CV-6U for qemu-devel@nongnu.org; Wed, 15 Mar 2017 14:08:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coDLZ-0002yu-G2 for qemu-devel@nongnu.org; Wed, 15 Mar 2017 14:08:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36236) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coDLZ-0002yK-7j for qemu-devel@nongnu.org; Wed, 15 Mar 2017 14:08:29 -0400 Date: Wed, 15 Mar 2017 18:08:22 +0000 From: "Daniel P. Berrange" Message-ID: <20170315180822.GU7770@redhat.com> Reply-To: "Daniel P. Berrange" References: <11569d75b61122820f186a32cdd20689@whitewinterwolf.com> <20170315144124.GP7770@redhat.com> <23d89ab3bd16ebf7a864ab75c300de7b@whitewinterwolf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [Bug 1217339] [PATCH] Unix signal to send ACPI-shutdown to Guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Simon , QEMU Developers On Wed, Mar 15, 2017 at 06:00:40PM +0000, Peter Maydell wrote: > On 15 March 2017 at 17:46, Simon wrote: > > OK for not using SIGHUP and keep SIGTERM, SIGINT and SIGHUP to have the > > same behavior. > > > > SIGQUIT is reserved for core files generation. > > > > SIGUSR1 is already used in 'util/qemu-progress.c' to trigger a report > > on ongoing jobs, so it does not seem usable. > > > > SIGUSR2 is temporarily used in 'util/coroutine-sigaltstack.c' which > > takes care however to preserve the original handler. I did not saw > > any other place where it is used, so it seems to be a better candidate. > > I don't think we can use SIGUSR2 here -- as you say, it's used > in the sigaltstack version of coroutines, and so there would > be races if the user tried to use SIGUSR2 to power down the > machine while we happened to be starting a new coroutine. > > SIGUSR1 is also no good, as it is used by main-loop.c as > the SIG_IPI. Which means we'd be into the realm of having to pick SIGRTMIN + N for some arbitrary N >= 0 Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|