These patches by Paolo Bonzini <pbonz...@redhat.com> add thread-local storage
support for POSIX and Windows platforms.  Fast native TLS mechanisms are used
when available and pthread_get/setspecific() is used as a fallback.

My dataplane block layer RFC work relies on this and it has been discussed
separately by Ed and Peter, so I wanted to share my latest edited version of
these patches.

The only change I made is to prepend "tls_" to the function names.

Paolo: Posting so you can take this back into your tree if you wish.

Paolo Bonzini (2):
  exec: do not use qemu/tls.h
  qemu-thread: add TLS wrappers

 configure                |  21 ++++++++
 exec.c                   |  10 +++-
 include/exec/cpu-all.h   |  14 ++++--
 include/qemu/tls.h       | 125 ++++++++++++++++++++++++++++++++++++++++-------
 tests/Makefile           |   3 ++
 tests/test-tls.c         |  87 +++++++++++++++++++++++++++++++++
 util/qemu-thread-win32.c |  17 +++++++
 7 files changed, 253 insertions(+), 24 deletions(-)
 create mode 100644 tests/test-tls.c

-- 
1.8.1.4


Reply via email to