]> git.proxmox.com Git - qemu.git/commit
aio / timers: Use all timerlists in icount warp calculations
authorAlex Bligh <alex@alex.org.uk>
Wed, 21 Aug 2013 15:02:57 +0000 (16:02 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 22 Aug 2013 17:10:28 +0000 (19:10 +0200)
commitac70aafc28bec4d1014082f0c6659a368c5a95bd
tree44fe4dafc708c49787dd77901601fb006c720b31
parenta3a726ae09cdf6d277ac88cd725cf50d5849db2c
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>
cpus.c
include/qemu/timer.h
qemu-timer.c
qtest.c