From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtXrw-0005Bn-Vj for qemu-devel@nongnu.org; Wed, 17 Aug 2011 00:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtXrw-0002RW-2t for qemu-devel@nongnu.org; Wed, 17 Aug 2011 00:36:44 -0400 Received: from speedy.comstyle.com ([206.51.28.2]:26509 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtXrw-0002RS-0Q for qemu-devel@nongnu.org; Wed, 17 Aug 2011 00:36:44 -0400 Message-ID: <4E4B4557.2050505@comstyle.com> Date: Wed, 17 Aug 2011 00:36:39 -0400 From: Brad MIME-Version: 1.0 References: <1313520667-26507-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1313520667-26507-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu-thread: add TLS wrappers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On 16/08/11 2:51 PM, Paolo Bonzini wrote: > Win32 emulated TLS is slow and is not available on all versions of GCC. > Actually, Win32 does have support for decent TLS, only GCC does not map > __thread to it. The good news is, it's perfectly possible to declare > TLS variables with simple C code! > > This patch adds wrappers to qemu-thread that will use __thread on POSIX > systems, and the .tls segment on Windows. The actual use of TLS within QEMU on POSIX systems will be optional though, right? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.