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 03:08:35 +0100 Message-ID: <4CEC73A3.7050009@redhat.com> References: <1290530963-3448-1-git-send-email-aliguori@us.ibm.com> <4CEC363D.50206@linux.vnet.ibm.com> <4CEC5196.8010103@redhat.com> <4CEC671C.1040109@codemonkey.ws> 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: Anthony Liguori Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:60919 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755118Ab0KXCIi (ORCPT ); Tue, 23 Nov 2010 21:08:38 -0500 Received: by bwz15 with SMTP id 15so7768379bwz.19 for ; Tue, 23 Nov 2010 18:08:36 -0800 (PST) In-Reply-To: <4CEC671C.1040109@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: On 11/24/2010 02:15 AM, Anthony Liguori wrote: > > Is it signal safe? Yes, at heart it is just a somewhat more expensive access to pthread_self()->some_array[key]. > BTW, this is all only theoretical. This is in the KVM io thread code > which is already highly unportable. True, and newer versions of GCC emulate __thread even on Windows. Paolo