From patchwork Tue Feb 8 17:18:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 82366 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 E2E0FB70A9 for ; Wed, 9 Feb 2011 05:08:32 +1100 (EST) Received: from localhost ([127.0.0.1]:41105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmrzK-000118-9o for incoming@patchwork.ozlabs.org; Tue, 08 Feb 2011 13:08:30 -0500 Received: from [140.186.70.92] (port=34582 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmrxx-0000Pb-SD for qemu-devel@nongnu.org; Tue, 08 Feb 2011 13:07:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pmrxw-0000Cw-NW for qemu-devel@nongnu.org; Tue, 08 Feb 2011 13:07:05 -0500 Received: from mail-gw0-f45.google.com ([74.125.83.45]:42831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmrDJ-0000yU-RK for qemu-devel@nongnu.org; Tue, 08 Feb 2011 12:18:54 -0500 Received: by mail-gw0-f45.google.com with SMTP id a12so2625285gwa.4 for ; Tue, 08 Feb 2011 09:18:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=s4c35DsFZ5I7v2CYn0J4lFnObmssn0JxryKAzXTTtWw=; b=UjiwwtvHlPGgd9f0BVJooIY66kdhaajx+IYn7y7UVtElCrlHchubPJADAMRNPYb6qs s/9tg/4fXpswwos84/LbevRkBBagY3w06SF2AG3MLQgNJuSQBjYyZdScyoX2xYUWqt8l bUIap0M5MLlnfaBCbp46YEVW7aUbGGlVfATSQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; b=n6pXFgyb2pAlN0b5SlOX5iJzXyTWaf9as1RLVXmZdtRC1nIORhX2clJnM08HSNbS+Y jMhwFHC0Y7lOmOimAmfiPzPxX0/fL4zMApB+/hLeGBTK/tOZGzaM1l3ksPSA3BF1ba6E lTBf+6fsGIeNwewFTPK4UjLP5oIHWgnyLpBog= Received: by 10.100.75.4 with SMTP id x4mr10463391ana.85.1297185533618; Tue, 08 Feb 2011 09:18:53 -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.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Feb 2011 09:18:53 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 8 Feb 2011 18:18:24 +0100 Message-Id: <1297185509-20996-8-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: 74.125.83.45 Subject: [Qemu-devel] [CFT PATCH 07/12] always signal pause_cond after stopping a VCPU 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 Signed-off-by: Paolo Bonzini --- cpus.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/cpus.c b/cpus.c index 5b13961..ee2a6cc 100644 --- a/cpus.c +++ b/cpus.c @@ -980,8 +980,10 @@ static void qemu_system_vmstop_request(int reason) void cpu_stop_current(void) { if (cpu_single_env) { + cpu_single_env->stop = 0; cpu_single_env->stopped = 1; cpu_exit(cpu_single_env); + qemu_cond_signal(&qemu_pause_cond); } }