[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH v2 05/12] icount: check for icount clock deadlin
From: |
fred . konrad |
Subject: |
[Qemu-devel] [RFC PATCH v2 05/12] icount: check for icount clock deadline when cpu loop exits. |
Date: |
Tue, 25 Mar 2014 17:16:33 +0100 |
From: KONRAD Frederic <address@hidden>
Notify events on icount clock when CPU loop exits.
Signed-off-by: KONRAD Frederic <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
---
cpus.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cpus.c b/cpus.c
index e646bac..4dced24 100644
--- a/cpus.c
+++ b/cpus.c
@@ -992,6 +992,11 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)
if (deadline == 0) {
qemu_clock_notify(QEMU_CLOCK_VIRTUAL);
}
+
+ deadline = qemu_clock_deadline_ns_all(QEMU_CLOCK_ICOUNT);
+ if (deadline == 0) {
+ qemu_clock_notify(QEMU_CLOCK_ICOUNT);
+ }
}
qemu_tcg_wait_io_event();
}
--
1.8.1.4
- [Qemu-devel] [RFC PATCH v2 00/12] Reverse execution., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 01/12] icount: put icount variables into TimerState., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 05/12] icount: check for icount clock deadline when cpu loop exits.,
fred . konrad <=
- [Qemu-devel] [RFC PATCH v2 03/12] migration: make qemu_savevm_state public., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 07/12] timer: add cpu_icount_to_ns function., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 11/12] cexe: synchronize icount on the next event., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechanism., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 04/12] icount: introduce icount timer., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 02/12] migration: migrate icount fields., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 10/12] cpu-exec: trigger a debug request when rexec stops., fred . konrad, 2014/03/25
- [Qemu-devel] [RFC PATCH v2 09/12] gdbstub: allow reverse execution in gdb stub., fred . konrad, 2014/03/25