|
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 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10 |
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 address@hidden More majordomo info at http://vger.kernel.org/majordomo-info.html
[Prev in Thread] | Current Thread | [Next in Thread] |