From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STx1Y-0006DN-Ra for qemu-devel@nongnu.org; Mon, 14 May 2012 11:17:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STx1S-00034f-QU for qemu-devel@nongnu.org; Mon, 14 May 2012 11:17:24 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:41488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STx1S-00033n-Lt for qemu-devel@nongnu.org; Mon, 14 May 2012 11:17:18 -0400 Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 May 2012 11:17:11 -0400 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id B924638C8068 for ; Mon, 14 May 2012 11:16:47 -0400 (EDT) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q4EFGbt7109766 for ; Mon, 14 May 2012 11:16:47 -0400 Received: from d03av05.boulder.ibm.com (loopback [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q4EF4sAR001121 for ; Mon, 14 May 2012 09:04:55 -0600 Message-ID: <4FB11F0C.4080808@us.ibm.com> Date: Mon, 14 May 2012 10:04:44 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <4FAAEC41.70608@siemens.com> In-Reply-To: <4FAAEC41.70608@siemens.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1.1] Switch SIG_IPI to SIGUSR1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Kevin Wolf , Peter Maydell , Michael Tokarev , qemu-devel , Avi Kivity On 05/09/2012 05:14 PM, Jan Kiszka wrote: > Use SIGUSR1 unconditionally as SIG_IPI. First, ucontext coroutines tend > to corrupt RT signal masks due to a 32-on-64-bit Linux kernel bug. And, > second, there appears to be no advantage in using RT signals for VCPU > kicking. > > Signed-off-by: Jan Kiszka Applied. Thanks. Regards, Anthony Liguori > --- > > As people prefer to stick with ucontext, this replaces the backend > switch for i386-linux. > > Avi, you once committed the RT signal based SIG_IPI version to > qemu-kvm. Can you confirm that SIGUSR1 comes with no downside? > > This is also stable material. > > main-loop.h | 4 ---- > 1 files changed, 0 insertions(+), 4 deletions(-) > > diff --git a/main-loop.h b/main-loop.h > index c06b8bc..dce1cd9 100644 > --- a/main-loop.h > +++ b/main-loop.h > @@ -25,11 +25,7 @@ > #ifndef QEMU_MAIN_LOOP_H > #define QEMU_MAIN_LOOP_H 1 > > -#ifdef SIGRTMIN > -#define SIG_IPI (SIGRTMIN+4) > -#else > #define SIG_IPI SIGUSR1 > -#endif > > /** > * qemu_init_main_loop: Set up the process so that it can run the main loop.