From patchwork Mon Feb 21 08:43:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 83801 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 EDB3CB70A4 for ; Mon, 21 Feb 2011 20:30:13 +1100 (EST) Received: from localhost ([127.0.0.1]:51865 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrS5r-0003wJ-5m for incoming@patchwork.ozlabs.org; Mon, 21 Feb 2011 04:30:11 -0500 Received: from [140.186.70.92] (port=49522 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrRNO-0004k0-2Y for qemu-devel@nongnu.org; Mon, 21 Feb 2011 03:44:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrRNM-0000Qa-U6 for qemu-devel@nongnu.org; Mon, 21 Feb 2011 03:44:13 -0500 Received: from mail-wy0-f173.google.com ([74.125.82.173]:61006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrRNM-0000I2-Kj for qemu-devel@nongnu.org; Mon, 21 Feb 2011 03:44:12 -0500 Received: by mail-wy0-f173.google.com with SMTP id 29so1150726wyb.4 for ; Mon, 21 Feb 2011 00:44:12 -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=5kK96IdMZXxhBPxIjvLP83xX6seLyjzt1YFB918ry/w=; b=RqVFxR/cd007zvGDKxSZGZ1bctTOAZRAYND4Fp3NBWE2InfMTNMc9GOR6pmzZAnxcN xoBKQaKXrNySDhf8DbFelVxeLZ/824o/5hw1vkPQepRnih/36WPlRnSci0gWVE5poxLY TmlQxJpRd6zflvw6QyVw3O6xh/ykkLKeuYR4s= 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=Kd8STA5HOqFE1zgnYSyqwHp8NNuX5sNfgHMWRxh3y703xW9owvJORuSENRzPdM7JX+ SkSrQV073whmzRZAqGXQJgJGf2GTGpRd+0dREU5UrWIUCLJb6jFMpTnLxQ7SQvo629bh FnyvGop5sqKqAU2+jVeoDNXroHqIXqtrH/rQo= Received: by 10.216.58.130 with SMTP id q2mr928884wec.57.1298277852173; Mon, 21 Feb 2011 00:44:12 -0800 (PST) Received: from localhost.localdomain (93-34-149-100.ip50.fastwebnet.it [93.34.149.100]) by mx.google.com with ESMTPS id t5sm1945464wes.9.2011.02.21.00.44.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Feb 2011 00:44:11 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 21 Feb 2011 09:43:36 +0100 Message-Id: <1298277820-8817-18-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.3.5 In-Reply-To: <1298277820-8817-1-git-send-email-pbonzini@redhat.com> References: <1298277820-8817-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.82.173 Subject: [Qemu-devel] [PATCH 17/21] iothread stops the vcpu thread via IPI 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 ee9999b..1b6893d 100644 --- a/cpus.c +++ b/cpus.c @@ -1086,9 +1086,11 @@ 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)) { if (kvm_enabled()) { r = kvm_cpu_exec(env);