From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGDCn-0000YS-41 for qemu-devel@nongnu.org; Thu, 03 Dec 2009 10:02:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGDCi-0000VE-ED for qemu-devel@nongnu.org; Thu, 03 Dec 2009 10:02:52 -0500 Received: from [199.232.76.173] (port=58621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGDCi-0000V5-3p for qemu-devel@nongnu.org; Thu, 03 Dec 2009 10:02:48 -0500 Received: from mail-pw0-f43.google.com ([209.85.160.43]:57456) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGDCh-0006tS-LV for qemu-devel@nongnu.org; Thu, 03 Dec 2009 10:02:47 -0500 Received: by pwi12 with SMTP id 12so1249128pwi.2 for ; Thu, 03 Dec 2009 07:02:46 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4B17CB45.90607@redhat.com> References: <1259761702-4041-1-git-send-email-glommer@redhat.com> <1259761702-4041-2-git-send-email-glommer@redhat.com> <1259761702-4041-3-git-send-email-glommer@redhat.com> <1259761702-4041-4-git-send-email-glommer@redhat.com> <1259761702-4041-5-git-send-email-glommer@redhat.com> <4B17CB45.90607@redhat.com> Date: Thu, 3 Dec 2009 13:02:46 -0200 Message-ID: <5d6222a80912030702l83e777bh11229f46e76d1f17@mail.gmail.com> Subject: Re: [Qemu-devel] Re: [PATCH 04/11] qemu_flush_work for remote vcpu execution From: Glauber Costa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel On Thu, Dec 3, 2009 at 12:29 PM, Paolo Bonzini wrote: > On 12/02/2009 02:48 PM, Glauber Costa wrote: >> >> + =C2=A0 =C2=A0if (env =3D=3D qemu_get_current_env()) { > > Will always be false for TCG + iothread. =C2=A0What's wrong with > qemu_cpu_self(env)? =C2=A0It appears to do the same, and it would also ma= ke the > whole thread-local storage stuff redundant. > Indeed. I'll turn to qemu_cpu_self. thanks --=20 Glauber Costa. "Free as in Freedom" http://glommer.net "The less confident you are, the more serious you have to act."