From patchwork Mon Feb 28 09:10: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: 594811 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1S9Bi5o007282 for ; Mon, 28 Feb 2011 09:11:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753060Ab1B1JLT (ORCPT ); Mon, 28 Feb 2011 04:11:19 -0500 Received: from mail-yi0-f46.google.com ([209.85.218.46]:54293 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752920Ab1B1JLQ (ORCPT ); Mon, 28 Feb 2011 04:11:16 -0500 Received: by mail-yi0-f46.google.com with SMTP id 27so564167yia.19 for ; Mon, 28 Feb 2011 01:11:16 -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=9/oKwnRxR0o8Icg8v0z5lHruY0gAIbyWzZckWqulvCg=; b=ssmeBPIeb6JQkPgIQUXrQRA46OgXBRf01JFAQO+9DZnicKYqQIEyogpHsupZRgBtcc ehHrhNgxSn0f5uQO9n7imNPOGEOhgEzq8mqB3L9o4+rVPZuTGhCIADS96X8DqvDyuX4W aLL8uvQN70hkIGHO5V5cPxlUGoJS+fMMcXNGs= 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=h1jKrCB4Lr6IWHHYvXrudbkeiHB24LG1ijdBiUiubRoHcjmOYaOtROOhu7Ge+/DOwK rGXMoBBV+KJBsCzcrGlEt3D/t3haU0G9zV9XLMpn6mDEUImxhXW+CWopOjJXkvCp6ekw U1M+nRZtZinLw1KIGO/NG1lpAC/XnQMoce54g= Received: by 10.236.103.133 with SMTP id f5mr9218569yhg.14.1298884276532; Mon, 28 Feb 2011 01:11:16 -0800 (PST) Received: from localhost.localdomain (93-34-149-100.ip50.fastwebnet.it [93.34.149.100]) by mx.google.com with ESMTPS id 1sm2037209yhl.11.2011.02.28.01.11.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 01:11:16 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, aurelien@aurel32.net, blauwirbel@gmail.com, jan.kiszka@siemes.com, mtosatti@redhat.com Subject: [PATCH v3 uq/master 16/22] do not use timedwait on qemu_pause_cond Date: Mon, 28 Feb 2011 10:10:18 +0100 Message-Id: <1298884224-19734-17-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> References: <1298884224-19734-1-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 28 Feb 2011 09:11:44 +0000 (UTC) diff --git a/cpus.c b/cpus.c index e367b3b..8f169ad 100644 --- a/cpus.c +++ b/cpus.c @@ -938,7 +938,7 @@ void pause_all_vcpus(void) } while (!all_vcpus_paused()) { - qemu_cond_timedwait(&qemu_pause_cond, &qemu_global_mutex, 100); + qemu_cond_wait(&qemu_pause_cond, &qemu_global_mutex); penv = first_cpu; while (penv) { qemu_cpu_kick(penv);