qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/2] Fast Thread-Local Storage support


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH 0/2] Fast Thread-Local Storage support
Date: Mon, 1 Jul 2013 11:35:39 +0200

These patches by Paolo Bonzini <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]