aboutsummaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorWen Congyang <wency@cn.fujitsu.com>2011-11-04 10:45:58 +0800
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-07 10:57:37 -0600
commit47113ab6b8c5659ad94c69aacca572f731ebb0ac (patch)
tree9dff923ad25e5fee993fbfe66a477e5b685fa8c6 /cpus.c
parentf67ab77a43cbaca27a39c69223ec6d5dc850f22d (diff)
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpus.c b/cpus.c
index 6aff425235..82530c4a03 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;