Re: [Qemu-devel] Re: [PATCH 2/7] store thread-specific env information

2009-11-30 Thread Avi Kivity
On 11/30/2009 01:49 PM, Paolo Bonzini wrote: On 11/30/2009 12:41 PM, Glauber Costa wrote: For the record, I am a big fan of __thread. The only reason I used the pthread library was portability. I can surely put in some configure knobs to use __thread where available Plus, do you really need to

Re: [Qemu-devel] Re: [PATCH 2/7] store thread-specific env information

2009-11-30 Thread Paolo Bonzini
On 11/30/2009 12:41 PM, Glauber Costa wrote: For the record, I am a big fan of __thread. The only reason I used the pthread library was portability. I can surely put in some configure knobs to use __thread where available Plus, do you really need to support SMP when __thread is not available?..

Re: [Qemu-devel] Re: [PATCH 2/7] store thread-specific env information

2009-11-30 Thread Glauber Costa
> Anyway on Windows neither __thread nor pthread_getspecific is supported, so > some configury is needed anyway. > > Paolo For the record, I am a big fan of __thread. The only reason I used the pthread library was portability. I can surely put in some configure knobs to use __thread where availabl

[Qemu-devel] Re: [PATCH 2/7] store thread-specific env information

2009-11-30 Thread Paolo Bonzini
On 11/29/2009 04:38 PM, Andreas Färber wrote: Am 29.11.2009 um 16:29 schrieb Avi Kivity: On 11/26/2009 07:24 PM, Glauber Costa wrote: Since we'll have multiple cpu threads, at least for kvm, we need a way to store and retrieve the CPUState associated with the current execution thread. For the