From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60130 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmswI-0004aQ-V2 for qemu-devel@nongnu.org; Tue, 08 Feb 2011 14:09:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmswI-0007gI-5Q for qemu-devel@nongnu.org; Tue, 08 Feb 2011 14:09:27 -0500 Received: from mail-yw0-f45.google.com ([209.85.213.45]:55445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmrDQ-0000y0-Mf for qemu-devel@nongnu.org; Tue, 08 Feb 2011 12:19:00 -0500 Received: by mail-yw0-f45.google.com with SMTP id 8so2635470ywa.4 for ; Tue, 08 Feb 2011 09:19:00 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 8 Feb 2011 18:18:29 +0100 Message-Id: <1297185509-20996-13-git-send-email-pbonzini@redhat.com> In-Reply-To: <1297185509-20996-1-git-send-email-pbonzini@redhat.com> References: <1297185509-20996-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [CFT PATCH 12/12] iothread stops the vcpu thread via IPI List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This "if" has no reason to exist in the iothread world, and it breaks Wine because of the slowness of the thread primitives there. Signed-off-by: Paolo Bonzini --- cpus.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/cpus.c b/cpus.c index 67fd672..3d74ad7 100644 --- a/cpus.c +++ b/cpus.c @@ -1053,8 +1053,10 @@ bool cpu_exec_all(void) qemu_clock_enable(vm_clock, (env->singlestep_enabled & SSTEP_NOTIMER) == 0); +#ifndef CONFIG_IOTHREAD if (qemu_alarm_pending()) break; +#endif if (cpu_can_run(env)) { r = qemu_cpu_exec(env); if (kvm_enabled()) { -- 1.7.3.5