Patchwork [05/12] qemu-timer: do not refer to runstate_is_running()

login
register
mail settings
Submitter Paolo Bonzini
Date Sept. 27, 2011, 4:31 p.m.
Message ID <1317141111-27701-6-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/116631/
State New
Headers show

Comments

Paolo Bonzini - Sept. 27, 2011, 4:31 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 cpus.c       |    1 +
 qemu-timer.c |    5 +----
 2 files changed, 2 insertions(+), 4 deletions(-)

Patch

diff --git a/cpus.c b/cpus.c
index 58d353f..751833d 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1060,6 +1060,7 @@  void pause_all_vcpus(void)
 {
     CPUState *penv = first_cpu;
 
+    qemu_clock_enable(vm_clock, false);
     while (penv) {
         penv->stop = 1;
         qemu_cpu_kick(penv);
diff --git a/qemu-timer.c b/qemu-timer.c
index 8129af6..d8507e3 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -504,10 +504,7 @@  void qemu_run_all_timers(void)
     }
 
     /* vm time timers */
-    if (runstate_is_running()) {
-        qemu_run_timers(vm_clock);
-    }
-
+    qemu_run_timers(vm_clock);
     qemu_run_timers(rt_clock);
     qemu_run_timers(host_clock);
 }