From patchwork Tue Feb 8 17:18:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 82385 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4D65CB7125 for ; Wed, 9 Feb 2011 05:55:55 +1100 (EST) Received: from localhost ([127.0.0.1]:51362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmseV-0004jp-FD for incoming@patchwork.ozlabs.org; Tue, 08 Feb 2011 13:51:03 -0500 Received: from [140.186.70.92] (port=37094 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmsdM-0004KB-ML for qemu-devel@nongnu.org; Tue, 08 Feb 2011 13:49:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmsdL-0003gM-I4 for qemu-devel@nongnu.org; Tue, 08 Feb 2011 13:49:52 -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 1PmrDB-0000y0-Ix for qemu-devel@nongnu.org; Tue, 08 Feb 2011 12:18:45 -0500 Received: by ywa8 with SMTP id 8so2635470ywa.4 for ; Tue, 08 Feb 2011 09:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references; bh=+Kxy1k9puMzw8e/eypN79CE1Y2JxmxW4M1hyZ4HgJBA=; b=L3S7TzOl3OYA4fdxvQ4thT3j5vxZgW9n4PnkxUAh140srOOzt1ykCftY24Rj/4IYO6 E1s2Tfsq1W3/4UxFGEvfoOBIW1B2ZIh9e+gQuUjvRiQKeQbTDEx1Ru+ih7fhF24O62vq 69q8+eFD5/yRx3uik9YI2MHaG2JGmFx3h+iNs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=UtL7GseADTAVTB4i/cjfwqMNpTqGjEIOLcGUOS85mlfcn3qNvrwPZ2COU7rSSQTsD0 G5/W2Demchf1pA4TzYjvyFqGUbLlemGI01GpuEjKSqmdEb9xQm1YOFfEYQ5cTJmJ4S5r D/RXgLIoqlhf4pyVjI1MGrFnxVmYCcspyMCUo= Received: by 10.90.91.16 with SMTP id o16mr158549agb.173.1297185525048; Tue, 08 Feb 2011 09:18:45 -0800 (PST) Received: from localhost.localdomain (93-34-149-100.ip50.fastwebnet.it [93.34.149.100]) by mx.google.com with ESMTPS id e24sm7303210ana.22.2011.02.08.09.18.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Feb 2011 09:18:44 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 8 Feb 2011 18:18:18 +0100 Message-Id: <1297185509-20996-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.3.5 In-Reply-To: <1297185509-20996-1-git-send-email-pbonzini@redhat.com> References: <1297185509-20996-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.45 Cc: Anthony Liguori Subject: [Qemu-devel] [CFT PATCH 01/12] io-thread: make sure to initialize qemu_work_cond and qemu_cpu_cond X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Anthony Liguori Signed-off-by: Anthony Liguori --- cpus.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/cpus.c b/cpus.c index 6a85dc8..474be16 100644 --- a/cpus.c +++ b/cpus.c @@ -667,8 +667,10 @@ int qemu_init_main_loop(void) if (ret) return ret; - qemu_cond_init(&qemu_pause_cond); + qemu_cond_init(&qemu_cpu_cond); qemu_cond_init(&qemu_system_cond); + qemu_cond_init(&qemu_pause_cond); + qemu_cond_init(&qemu_work_cond); qemu_mutex_init(&qemu_fair_mutex); qemu_mutex_init(&qemu_global_mutex); qemu_mutex_lock(&qemu_global_mutex);