[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tls.h: Enable TLS on FreeBSD
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] tls.h: Enable TLS on FreeBSD |
Date: |
Tue, 25 Jun 2013 12:58:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
Il 25/06/2013 12:56, Peter Maydell ha scritto:
> On 24 June 2013 22:15, Paolo Bonzini <address@hidden> wrote:
>> I and Stefan Hajnoczi have almost the same idea implemented in QEMU
>> (except that get_foo() returns a pointer to the variable). But
>> pthread_get/setspecific would be too slow for cpu_single_env, so we're
>> just switching to __thread for cpu_single_env (for Linux in our patches,
>> but you can add FreeBSD too once it's needed).
>
> By the way, what's the plan for Windows? Does that support
> __thread too, or will there still need to be some windows
> specific magic?
__thread is supported but slow, so there is a small amount of
Windows-specific magic (but it won't affect the users of tls.h).
Paolo
- [Qemu-devel] [PATCH] tls.h: Enable TLS on FreeBSD, Ed Maste, 2013/06/24
- Re: [Qemu-devel] [PATCH] tls.h: Enable TLS on FreeBSD, Paolo Bonzini, 2013/06/24
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Michael Tokarev, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Ed Maste, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Paolo Bonzini, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Peter Maydell, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Ed Maste, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Paolo Bonzini, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Peter Maydell, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Paolo Bonzini, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Ed Maste, 2013/06/28
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD, Paolo Bonzini, 2013/06/28