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 | |
| parent | f67ab77a43cbaca27a39c69223ec6d5dc850f22d (diff) | |
| download | focaccia-qemu-47113ab6b8c5659ad94c69aacca572f731ebb0ac.tar.gz focaccia-qemu-47113ab6b8c5659ad94c69aacca572f731ebb0ac.zip | |
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>
| -rw-r--r-- | cpus.c | 1 |
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; |