qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] reenable vm_clock when resuming all vcpus
@ 2011-11-04  2:45 Wen Congyang
  2011-11-04  2:48 ` Zhi Yong Wu
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Wen Congyang @ 2011-11-04  2:45 UTC (permalink / raw)
  To: qemu-devel, Paolo Bonzini

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.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>

---
 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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-11-10  8:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04  2:45 [Qemu-devel] [PATCH] reenable vm_clock when resuming all vcpus Wen Congyang
2011-11-04  2:48 ` Zhi Yong Wu
2011-11-04  6:26   ` Wen Congyang
2011-11-04 11:31     ` Zhi Yong Wu
2011-11-07  2:24     ` Zhi Yong Wu
2011-11-04  7:43 ` Paolo Bonzini
2011-11-08 17:24 ` Anthony Liguori
2011-11-09 16:22   ` Eduardo Habkost
2011-11-10  8:28     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).