]> git.proxmox.com Git - mirror_qemu.git/commitdiff
reenable vm_clock when resuming all vcpus
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 4 Nov 2011 02:45:58 +0000 (10:45 +0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 7 Nov 2011 16:57:37 +0000 (10:57 -0600)
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.

Tested-by: Zhi Yong Wu <zwu.kernel@gmai.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cpus.c

diff --git a/cpus.c b/cpus.c
index 6aff425235fcf592ca8d1c5cadf6b70ac590a0e1..82530c4a039f4d5b8adcd3e3ea273919d5c46ac4 100644 (file)
--- 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;