From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [Qemu-devel] [PATCH] qemu-kvm: response to SIGUSR1 to start/stop a VCPU (v2) Date: Wed, 24 Nov 2010 00:43:18 +0100 Message-ID: <4CEC5196.8010103@redhat.com> References: <1290530963-3448-1-git-send-email-aliguori@us.ibm.com> <4CEC363D.50206@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Blue Swirl , qemu-devel@nongnu.org, Chris Wright , Avi Kivity , kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:45628 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753199Ab0KWXn2 (ORCPT ); Tue, 23 Nov 2010 18:43:28 -0500 Received: by bwz15 with SMTP id 15so7661881bwz.19 for ; Tue, 23 Nov 2010 15:43:27 -0800 (PST) In-Reply-To: <4CEC363D.50206@linux.vnet.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: 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