From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSPmw-0000Jf-8e for qemu-devel@nongnu.org; Thu, 10 May 2012 05:36:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSPmV-0008TS-SL for qemu-devel@nongnu.org; Thu, 10 May 2012 05:35:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSPmV-0008Sl-Kk for qemu-devel@nongnu.org; Thu, 10 May 2012 05:35:31 -0400 Message-ID: <4FAB8BDE.1080709@redhat.com> Date: Thu, 10 May 2012 12:35:26 +0300 From: Avi Kivity MIME-Version: 1.0 References: <4FAAEC41.70608@siemens.com> In-Reply-To: <4FAAEC41.70608@siemens.com> Content-Type: text/plain; charset=ISO-8859-1 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 , Anthony Liguori , Michael Tokarev , qemu-devel On 05/10/2012 01:14 AM, 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 > --- > > 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? > In fact SIGUSR1 would be better in that real-time signals are queued, so two IPIs are delivered twice with the old SIG_IPI and only once with SIGUSR1. I have some vague recollection that real time signals are handled faster in the kernel. Even if this is true, it's meaningless with kernel irqchip since signalling is only used heavily with userspace APIC. -- error compiling committee.c: too many arguments to function