From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ6KE-0007fw-5e for qemu-devel@nongnu.org; Wed, 26 Oct 2011 12:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJ6KC-00016b-Pf for qemu-devel@nongnu.org; Wed, 26 Oct 2011 12:27:34 -0400 Received: from cantor2.suse.de ([195.135.220.15]:56062 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ6KC-00016O-FA for qemu-devel@nongnu.org; Wed, 26 Oct 2011 12:27:32 -0400 Message-ID: <4EA834EE.1010109@suse.de> Date: Wed, 26 Oct 2011 18:27:26 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <20111003163352.GA22822@davesworkthinkpad> <4E89F62E.1020804@web.de> <87lit0n66z.fsf@ginnungagap.bsc.es> <4E8B41D8.3050502@web.de> <4E8C0275.50107@redhat.com> <4E8C0CA0.2010006@web.de> <4E8C217D.10800@redhat.com> <4EA81BB2.90904@redhat.com> <4EA82120.8060702@siemens.com> <4EA82395.20408@siemens.com> <4EA82F24.1090301@siemens.com> In-Reply-To: <4EA82F24.1090301@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Make cpu_single_env thread local (Linux only for now) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Peter Maydell , "Dr. David Alan Gilbert" , "patches@linaro.org" , "qemu-devel@nongnu.org" , "agraf@suse.de" , Paolo Bonzini Am 26.10.2011 18:02, schrieb Jan Kiszka: > On 2011-10-26 17:18, Peter Maydell wrote: >> On 26 October 2011 16:13, Jan Kiszka wrote: >>> My point is that it is fine to use for per-vcpu variables because: >>> - they are single-threaded in TCG mode >>> - they are multi-threaded in KVM mode, but that's only affecting Lin= ux >>> hosts for which this TLS wrapper is already usable >> >> Oh, I see. Feel free to suggest reworded comment text :-) >=20 > /* Dummy implementations -- we can get away with this because > * - we confine the use to per-VCPU variables > * - only linux-user supports multiple VCPU threads > * - TCG system mode is single-threaded regarding VCPUs > * - KVM system mode is multi-threaded but limited to Linux There was a port of KVM to illumos-derived SmartOS. But I don't see an easy way to error out on non-Linux KVM hosts without breaking TCG, too. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg