diff options
| author | Alex Bligh | 2013-08-21 17:02:57 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-08-22 19:10:28 +0200 |
| commit | ac70aafc28bec4d1014082f0c6659a368c5a95bd (patch) | |
| tree | 44fe4dafc708c49787dd77901601fb006c720b31 /qtest.c | |
| parent | aio / timers: Introduce new API timer_new and friends (diff) | |
| download | qemu-ac70aafc28bec4d1014082f0c6659a368c5a95bd.tar.gz qemu-ac70aafc28bec4d1014082f0c6659a368c5a95bd.tar.xz qemu-ac70aafc28bec4d1014082f0c6659a368c5a95bd.zip | |
aio / timers: Use all timerlists in icount warp calculations
Notify all timerlists derived from vm_clock in icount warp
calculations.
When calculating timer delay based on vm_clock deadline, use
all timerlists.
For compatibility, maintain an apparent bug where when using
icount, if no vm_clock timer was set, qemu_clock_deadline
would return INT32_MAX and always set an icount clock expiry
about 2 seconds ahead.
NB: thread safety - when different timerlists sit on different
threads, this will need some locking.
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qtest.c')
| -rw-r--r-- | qtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -412,7 +412,7 @@ static void qtest_process_command(CharDriverState *chr, gchar **words) if (words[1]) { ns = strtoll(words[1], NULL, 0); } else { - ns = qemu_clock_deadline(vm_clock); + ns = qemu_clock_deadline_ns_all(vm_clock); } qtest_clock_warp(qemu_get_clock_ns(vm_clock) + ns); qtest_send_prefix(chr); |
