diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2011-11-04 10:45:58 +0800 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-11-07 10:57:37 -0600 |
commit | 47113ab6b8c5659ad94c69aacca572f731ebb0ac (patch) | |
tree | 9dff923ad25e5fee993fbfe66a477e5b685fa8c6 /cpus.c | |
parent | f67ab77a43cbaca27a39c69223ec6d5dc850f22d (diff) | |
download | qemu-47113ab6b8c5659ad94c69aacca572f731ebb0ac.zip qemu-47113ab6b8c5659ad94c69aacca572f731ebb0ac.tar.gz qemu-47113ab6b8c5659ad94c69aacca572f731ebb0ac.tar.bz2 |
reenable vm_clock when resuming all vcpus
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>
Diffstat (limited to 'cpus.c')
-rw-r--r-- | cpus.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |