From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSCXu-0005Rx-Eh for qemu-devel@nongnu.org; Wed, 09 May 2012 15:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSCXs-0001es-Jj for qemu-devel@nongnu.org; Wed, 09 May 2012 15:27:34 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:46584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSCXs-0001eg-CU for qemu-devel@nongnu.org; Wed, 09 May 2012 15:27:32 -0400 Message-ID: <4FAAC521.5000907@msgid.tls.msk.ru> Date: Wed, 09 May 2012 23:27:29 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <4FAAC3A3.5040503@siemens.com> In-Reply-To: <4FAAC3A3.5040503@siemens.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1.1] coroutine: Avoid ucontext usage on i386 Linux host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Kevin Wolf , Peter Maydell , Anthony Liguori , qemu-devel On 09.05.2012 23:21, Jan Kiszka wrote: > On i386, glibc only saves/restores the signal mask via sigprocmask, > excluding RT signal. A Linux bug in the compat version of this syscall > corrupts the RT signal state, which will cause lockups of QEMU's VCPU > threads. This should obviously be fixed in kernel, for benefit of all (not only qemu), do you have any details here? > Signed-off-by: Jan Kiszka > --- > > I'm not sure where to fall back to. The existing code uses gthread, > likely because it is the safer harbor. So I picked it as well. Can't we resort to the SIGUSR1 workaround for the time being, while no RT signals are in actual use, and just have the time to let the kernel side to fix the things up before some actual RTsig user will emerge in qemu? I think it is a bit more conservative approach, especially having in mind the minority of users this issue affects (only 32/64 mixed environment). I'd favor for this variant, and it looks like I'm the "main" 32/64bit user of qemu in this world :) Thanks, /mjt