Re: [Qemu-devel] [PATCH 1/7] coroutine-ucontext: use __thread

2014-11-28 Thread Kevin Wolf
Am 28.11.2014 um 15:45 hat Markus Armbruster geschrieben: > Paolo Bonzini writes: > > > ELF thread local storage is about 10% faster on tests/test-coroutine's > > perf/cost test. The timing on my machine is 160ns per iteration with > > pthread TLS, 145 with ELF TLS. > > > > Based on a patch by K

Re: [Qemu-devel] [PATCH 1/7] coroutine-ucontext: use __thread

2014-11-28 Thread Markus Armbruster
Paolo Bonzini writes: > ELF thread local storage is about 10% faster on tests/test-coroutine's > perf/cost test. The timing on my machine is 160ns per iteration with > pthread TLS, 145 with ELF TLS. > > Based on a patch by Kevin Wolf and Peter Lieven, but redone to follow > the model of coroutin

Re: [Qemu-devel] [PATCH 1/7] coroutine-ucontext: use __thread

2014-11-28 Thread Peter Maydell
On 28 November 2014 at 14:12, Paolo Bonzini wrote: > +/* This function is marked noinline to prevent GCC from inlining it > + * into coroutine_trampoline(). If we allow it to do that then it > + * hoists the code to get the address of the TLS variable "current" > + * out of the while() loop. This