From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL3xX-0000cy-8T for qemu-devel@nongnu.org; Tue, 23 Nov 2010 20:15:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PL3xO-0001tU-NL for qemu-devel@nongnu.org; Tue, 23 Nov 2010 20:15:43 -0500 Received: from mail-gw0-f45.google.com ([74.125.83.45]:54500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PL3xO-0001t8-L1 for qemu-devel@nongnu.org; Tue, 23 Nov 2010 20:15:34 -0500 Received: by gwj22 with SMTP id 22so2256249gwj.4 for ; Tue, 23 Nov 2010 17:15:33 -0800 (PST) Message-ID: <4CEC671C.1040109@codemonkey.ws> Date: Tue, 23 Nov 2010 19:15:08 -0600 From: Anthony Liguori 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> <4CEC5196.8010103@redhat.com> In-Reply-To: <4CEC5196.8010103@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Blue Swirl , Chris Wright , qemu-devel@nongnu.org, kvm@vger.kernel.org, Avi Kivity On 11/23/2010 05:43 PM, Paolo Bonzini wrote: > 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. Is it signal safe? BTW, this is all only theoretical. This is in the KVM io thread code which is already highly unportable. Regards, Anthony Liguori > Paolo > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html