From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54181 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL2WH-00072o-Qp for qemu-devel@nongnu.org; Tue, 23 Nov 2010 18:43:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PL2WG-0000iH-Qh for qemu-devel@nongnu.org; Tue, 23 Nov 2010 18:43:29 -0500 Received: from mail-bw0-f45.google.com ([209.85.214.45]:36200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PL2WG-0000i8-G5 for qemu-devel@nongnu.org; Tue, 23 Nov 2010 18:43:28 -0500 Received: by bwz16 with SMTP id 16so7939659bwz.4 for ; Tue, 23 Nov 2010 15:43:27 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4CEC5196.8010103@redhat.com> Date: Wed, 24 Nov 2010 00:43:18 +0100 From: Paolo Bonzini MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] qemu-kvm: response to SIGUSR1 to start/stop a VCPU (v2) References: <1290530963-3448-1-git-send-email-aliguori@us.ibm.com> <4CEC363D.50206@linux.vnet.ibm.com> In-Reply-To: <4CEC363D.50206@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , Chris Wright , qemu-devel@nongnu.org, kvm@vger.kernel.org, Avi Kivity On 11/23/2010 10:46 PM, Anthony Liguori wrote: >>> +static __thread int sigusr1_wfd; >> While OpenBSD finally updated the default compiler to 4.2.1 from 3.x >> series, thread local storage is still not supported: > > Hrm, is there a portable way to do this (distinguish a signal on a > particular thread)? You can use pthread_getspecific/pthread_setspecific. Paolo