From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhCeL-0002ea-Aq for qemu-devel@nongnu.org; Fri, 28 Aug 2009 21:22:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhCeH-0002dV-ST for qemu-devel@nongnu.org; Fri, 28 Aug 2009 21:22:37 -0400 Received: from [199.232.76.173] (port=45485 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhCeH-0002dS-JY for qemu-devel@nongnu.org; Fri, 28 Aug 2009 21:22:33 -0400 Received: from mail2.shareable.org ([80.68.89.115]:53076) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhCeH-0003BG-70 for qemu-devel@nongnu.org; Fri, 28 Aug 2009 21:22:33 -0400 Date: Sat, 29 Aug 2009 02:22:27 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: [PATCH v3] introduce on_vcpu Message-ID: <20090829012227.GH8036@shareable.org> References: <1247781328-17249-1-git-send-email-glommer@redhat.com> <4A96BF30.7090200@siemens.com> <20090828011856.GE5746@mothafucka.localdomain> <4A973530.4040002@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A973530.4040002@us.ibm.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jan Kiszka , Glauber Costa , qemu-devel@nongnu.org, avi@redhat.com Anthony Liguori wrote: > Glauber Costa wrote: > Since we already keep the tid in the vcpu structure, it seems to make > more sense to ask "am I this vcpu thread" by doing gettid() == env->tid > than by maintaining a new global tls variable. Note that a tls variable will be much faster than gettid(). Don't know if you're talking about a hot path. -- Jamie