From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMDCx-0005ha-Fj for qemu-devel@nongnu.org; Fri, 04 Nov 2011 02:24:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMDCw-0001u6-1W for qemu-devel@nongnu.org; Fri, 04 Nov 2011 02:24:55 -0400 Received: from [222.73.24.84] (port=49730 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMDCv-0001to-9u for qemu-devel@nongnu.org; Fri, 04 Nov 2011 02:24:54 -0400 Message-ID: <4EB38598.4000101@cn.fujitsu.com> Date: Fri, 04 Nov 2011 14:26:32 +0800 From: Wen Congyang MIME-Version: 1.0 References: <4EB351E6.3090807@cn.fujitsu.com> In-Reply-To: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH] reenable vm_clock when resuming all vcpus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Yong Wu Cc: Paolo Bonzini , qemu-devel At 11/04/2011 10:48 AM, Zhi Yong Wu Write: > On Fri, Nov 4, 2011 at 10:45 AM, Wen Congyang wrote: >> >> 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. > Actually i also met this issue when rebooting the guest. When the > guest is rebooted, it will crash. When I reboot the guest, it will hang. Does this patch solve your problem? > >> >> Signed-off-by: Wen Congyang >> >> --- >> 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; >> -- >> 1.7.1 >> > > > > -- > Regards, > > Zhi Yong Wu >