From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [Qemu-devel] [PATCH] qemu-kvm: response to SIGUSR1 to start/stop a VCPU (v2) Date: Tue, 23 Nov 2010 19:15:08 -0600 Message-ID: <4CEC671C.1040109@codemonkey.ws> References: <1290530963-3448-1-git-send-email-aliguori@us.ibm.com> <4CEC363D.50206@linux.vnet.ibm.com> <4CEC5196.8010103@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Blue Swirl , qemu-devel@nongnu.org, Chris Wright , Avi Kivity , kvm@vger.kernel.org To: Paolo Bonzini Return-path: Received: from mail-gw0-f46.google.com ([74.125.83.46]:33066 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754440Ab0KXBPe (ORCPT ); Tue, 23 Nov 2010 20:15:34 -0500 Received: by gwj20 with SMTP id 20so492601gwj.19 for ; Tue, 23 Nov 2010 17:15:33 -0800 (PST) In-Reply-To: <4CEC5196.8010103@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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