[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 06/14] qemu-timer: do not refer to vm_running
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [RFC PATCH 06/14] qemu-timer: do not refer to vm_running |
Date: |
Fri, 16 Sep 2011 17:09:02 +0200 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
cpus.c | 1 +
qemu-timer.c | 5 +----
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/cpus.c b/cpus.c
index 31d450c..f8799f5 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1065,6 +1065,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 9238458..0c7cfd2 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -504,10 +504,7 @@ void qemu_run_all_timers(void)
}
/* vm time timers */
- if (vm_running) {
- qemu_run_timers(vm_clock);
- }
-
+ qemu_run_timers(vm_clock);
qemu_run_timers(rt_clock);
qemu_run_timers(host_clock);
}
--
1.7.6
- [Qemu-devel] [RFC PATCH 00/14] allow tools to use the QEMU main loop, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 01/14] remove unused function, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 02/14] qemu-timer: remove active_timers array, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 04/14] qemu-timer: more clock functions, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 05/14] qemu-timer: move icount to cpus.c, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 06/14] qemu-timer: do not refer to vm_running,
Paolo Bonzini <=
- [Qemu-devel] [RFC PATCH 08/14] create main-loop.h, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 10/14] Revert to a hand-made select loop, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 07/14] qemu-timer: move more stuff out of qemu-timer.c, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 12/14] makefile: extract tools-obj-y, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 11/14] simplify main loop functions, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 03/14] qemu-timer: move common code to qemu_rearm_alarm_timer, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 09/14] create main-loop.c, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 14/14] qemu-nbd: use common main loop, Paolo Bonzini, 2011/09/16
- [Qemu-devel] [RFC PATCH 13/14] link the main loop and its dependencies into the tools, Paolo Bonzini, 2011/09/16