From patchwork Fri Nov 4 02:45:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen Congyang X-Patchwork-Id: 123559 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EF264B6F91 for ; Fri, 4 Nov 2011 13:44:40 +1100 (EST) Received: from localhost ([::1]:43337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9lk-0002ZN-M4 for incoming@patchwork.ozlabs.org; Thu, 03 Nov 2011 22:44:36 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9lZ-0002Vl-FW for qemu-devel@nongnu.org; Thu, 03 Nov 2011 22:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM9lY-0003pC-E3 for qemu-devel@nongnu.org; Thu, 03 Nov 2011 22:44:25 -0400 Received: from [222.73.24.84] (port=60475 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9lX-0003mm-NE for qemu-devel@nongnu.org; Thu, 03 Nov 2011 22:44:24 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 69ED817013B; Fri, 4 Nov 2011 10:44:06 +0800 (CST) Received: from mailserver.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id pA42i55K004276; Fri, 4 Nov 2011 10:44:05 +0800 Received: from [10.167.225.226] ([10.167.225.226]) by mailserver.fnst.cn.fujitsu.com (Lotus Domino Release 8.5.1FP4) with ESMTP id 2011110410440951-51554 ; Fri, 4 Nov 2011 10:44:09 +0800 Message-ID: <4EB351E6.3090807@cn.fujitsu.com> Date: Fri, 04 Nov 2011 10:45:58 +0800 From: Wen Congyang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4 MIME-Version: 1.0 To: qemu-devel , Paolo Bonzini X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-11-04 10:44:09, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-11-04 10:44:10, Serialize complete at 2011-11-04 10:44:10 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 222.73.24.84 Subject: [Qemu-devel] [PATCH] reenable vm_clock when resuming all vcpus X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org We disable vm_clock when pausing all vcpus, but we forget to reenable it when resuming all vcpus. It will cause that the guest can not be rebooted. Signed-off-by: Wen Congyang Reviewed-by: Paolo Bonzini Tested-by: Zhi Yong Wu --- cpus.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cpus.c b/cpus.c index 6aff425..82530c4 100644 --- a/cpus.c +++ b/cpus.c @@ -891,6 +891,7 @@ void resume_all_vcpus(void) { CPUState *penv = first_cpu; + qemu_clock_enable(vm_clock, true); while (penv) { penv->stop = 0; penv->stopped = 0;