From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsZxD-0003IC-8u for qemu-devel@nongnu.org; Fri, 28 Jun 2013 10:47:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsZxB-00043d-Tb for qemu-devel@nongnu.org; Fri, 28 Jun 2013 10:47:15 -0400 Sender: Paolo Bonzini Message-ID: <51CDA1E7.9000100@redhat.com> Date: Fri, 28 Jun 2013 16:47:03 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1372101677-46175-1-git-send-email-emaste@freebsd.org> <51CD669A.1010100@msgid.tls.msk.ru> <51CD8985.6020401@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] tls.h: Enable TLS on FreeBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, Ed Maste , Michael Tokarev , qemu-devel Il 28/06/2013 15:05, Peter Maydell ha scritto: >>> >> An objection seemed to be that it is not really needed yet, but as >>> >> pointed out by Peter this isn't really the case. This patch brings us >>> >> (FreeBSD) in line with per-thread data semantics on Linux and is used >>> >> by qemu system emulation as well. >> > >> > It brings it in line with Linux, even though FreeBSD has the same need >> > for TLS as OpenBSD and Windows (i.e. none). In other words, we go from >> > two cases (need TLS and uses it, has no TLS and doesn't need it) to >> > three (we add "uses TLS with no need for it"). > I don't understand what you mean by "no need for it". We are > already multithreaded in system mode, so this is simply > making FreeBSD do the same thing as Linux. cpu_single_env is protected by the BQL unless you're running on KVM. Paolo