From: Paolo Bonzini <pbonzini@redhat.com>
To: Ed Maste <emaste@freebsd.org>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD
Date: Mon, 24 Jun 2013 23:15:27 +0200 [thread overview]
Message-ID: <51C8B6EF.5070108@redhat.com> (raw)
In-Reply-To: <1372101677-46175-1-git-send-email-emaste@freebsd.org>
Il 24/06/2013 21:21, Ed Maste ha scritto:
> Signed-off-by: Ed Maste <emaste@freebsd.org>
> ---
> I have had this in a local tree for some time, and it is needed by the
> BSD-user work that is now being proposed.
At this time, qemu/tls.h is really just for cpu_single_env, so I think
this patch should be applied together with the bsd-user patches that
need it.
> As an aside, an abstraction was recently proposed for Open vSwtich that
> can use any of _Thread_local, __thread, or pthread_getspecific() which
> may make a convenient reference for someone wishing to implement one of
> the TODOs: http://openvswitch.org/pipermail/dev/2013-June/028665.html
I and Stefan Hajnoczi have almost the same idea implemented in QEMU
(except that get_foo() returns a pointer to the variable). But
pthread_get/setspecific would be too slow for cpu_single_env, so we're
just switching to __thread for cpu_single_env (for Linux in our patches,
but you can add FreeBSD too once it's needed).
Paolo
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Ed Maste <emaste@freebsd.org>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] tls.h: Enable TLS on FreeBSD
Date: Mon, 24 Jun 2013 23:15:27 +0200 [thread overview]
Message-ID: <51C8B6EF.5070108@redhat.com> (raw)
In-Reply-To: <1372101677-46175-1-git-send-email-emaste@freebsd.org>
Il 24/06/2013 21:21, Ed Maste ha scritto:
> Signed-off-by: Ed Maste <emaste@freebsd.org>
> ---
> I have had this in a local tree for some time, and it is needed by the
> BSD-user work that is now being proposed.
At this time, qemu/tls.h is really just for cpu_single_env, so I think
this patch should be applied together with the bsd-user patches that
need it.
> As an aside, an abstraction was recently proposed for Open vSwtich that
> can use any of _Thread_local, __thread, or pthread_getspecific() which
> may make a convenient reference for someone wishing to implement one of
> the TODOs: http://openvswitch.org/pipermail/dev/2013-June/028665.html
I and Stefan Hajnoczi have almost the same idea implemented in QEMU
(except that get_foo() returns a pointer to the variable). But
pthread_get/setspecific would be too slow for cpu_single_env, so we're
just switching to __thread for cpu_single_env (for Linux in our patches,
but you can add FreeBSD too once it's needed).
Paolo
next prev parent reply other threads:[~2013-06-24 21:15 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-24 19:21 [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD Ed Maste
2013-06-24 19:21 ` [Qemu-devel] " Ed Maste
2013-06-24 21:15 ` Paolo Bonzini [this message]
2013-06-24 21:15 ` Paolo Bonzini
2013-06-24 21:30 ` [Qemu-trivial] " Peter Maydell
2013-06-24 21:30 ` Peter Maydell
2013-06-25 6:18 ` [Qemu-trivial] " Paolo Bonzini
2013-06-25 6:18 ` [Qemu-devel] " Paolo Bonzini
2013-06-25 10:56 ` [Qemu-trivial] " Peter Maydell
2013-06-25 10:56 ` Peter Maydell
2013-06-25 10:58 ` [Qemu-trivial] " Paolo Bonzini
2013-06-25 10:58 ` Paolo Bonzini
2013-06-28 10:34 ` [Qemu-trivial] " Michael Tokarev
2013-06-28 10:34 ` [Qemu-devel] " Michael Tokarev
2013-06-28 12:54 ` [Qemu-trivial] [Qemu-devel] " Ed Maste
2013-06-28 12:54 ` [Qemu-devel] [Qemu-trivial] " Ed Maste
2013-06-28 13:03 ` [Qemu-trivial] [Qemu-devel] " Paolo Bonzini
2013-06-28 13:03 ` [Qemu-devel] [Qemu-trivial] " Paolo Bonzini
2013-06-28 13:05 ` [Qemu-trivial] [Qemu-devel] " Peter Maydell
2013-06-28 13:05 ` [Qemu-devel] [Qemu-trivial] " Peter Maydell
2013-06-28 14:08 ` [Qemu-trivial] [Qemu-devel] " Ed Maste
2013-06-28 14:08 ` [Qemu-devel] [Qemu-trivial] " Ed Maste
2013-06-28 14:47 ` Paolo Bonzini
2013-06-28 14:47 ` [Qemu-devel] " Paolo Bonzini
2013-06-28 14:55 ` Peter Maydell
2013-06-28 14:55 ` [Qemu-devel] " Peter Maydell
2013-06-28 15:11 ` Paolo Bonzini
2013-06-28 15:11 ` [Qemu-devel] " Paolo Bonzini
2013-06-28 15:35 ` Ed Maste
2013-06-28 15:35 ` [Qemu-devel] " Ed Maste
2013-06-28 15:37 ` Paolo Bonzini
2013-06-28 15:37 ` [Qemu-devel] " Paolo Bonzini
2013-07-01 8:03 ` Stefan Hajnoczi
2013-07-01 8:03 ` [Qemu-devel] " Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51C8B6EF.5070108@redhat.com \
--to=pbonzini@redhat.com \
--cc=emaste@freebsd.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.