From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utade-0008EX-0e for qemu-devel@nongnu.org; Mon, 01 Jul 2013 05:43:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtaWe-0001C7-Q5 for qemu-devel@nongnu.org; Mon, 01 Jul 2013 05:36:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtaWe-00017r-0G for qemu-devel@nongnu.org; Mon, 01 Jul 2013 05:36:00 -0400 From: Stefan Hajnoczi Date: Mon, 1 Jul 2013 11:35:39 +0200 Message-Id: <1372671341-19855-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] Fast Thread-Local Storage support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Anthony Liguori , Ed Maste , Stefan Hajnoczi , Peter Maydell These patches by Paolo Bonzini 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