From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTIVL-0001yw-KV for qemu-devel@nongnu.org; Tue, 30 Oct 2012 16:33:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTIVK-0004ni-KR for qemu-devel@nongnu.org; Tue, 30 Oct 2012 16:33:43 -0400 Received: from cantor2.suse.de ([195.135.220.15]:45070 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTIVK-0004nP-Dc for qemu-devel@nongnu.org; Tue, 30 Oct 2012 16:33:42 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 4CA5FA3A5C for ; Tue, 30 Oct 2012 21:33:41 +0100 (CET) Message-ID: <509039A2.6050009@suse.de> Date: Tue, 30 Oct 2012 21:33:38 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1350005203-15405-1-git-send-email-afaerber@suse.de> <1350005203-15405-5-git-send-email-afaerber@suse.de> In-Reply-To: <1350005203-15405-5-git-send-email-afaerber@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH qom-cpu v2 4/7] cpus: Pass CPUState to qemu_cpu_is_self() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Am 12.10.2012 03:26, schrieb Andreas F=C3=A4rber: > Change return type to bool, move to include/qemu/cpu.h and > add documentation. >=20 > Signed-off-by: Andreas F=C3=A4rber Applied to qom-cpu branch with the following build fix: diff --git a/cpus.c b/cpus.c index 3b1bfec..1f3ac91 100644 --- a/cpus.c +++ b/cpus.c @@ -898,7 +898,7 @@ bool qemu_cpu_is_self(CPUState *cpu) static bool qemu_in_vcpu_thread(void) { - return cpu_single_env && qemu_cpu_is_self(cpu_single_env); + return cpu_single_env && qemu_cpu_is_self(ENV_GET_CPU(cpu_single_env= )); } void qemu_mutex_lock_iothread(void) 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