On 11/04/2011 03:45 AM, Wen Congyang wrote:
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<we...@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;

Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>

The code I have now works for TCG, but of course not for KVM.  Thanks.

Paolo

Reply via email to