aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-09-12 11:02:20 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-09-18 15:48:33 +0200
commit3db1ee7c2af2fbbfe259712e3ce74158bc667ad3 (patch)
treee251ed3d3324e051c0ff37aa929f3b33dd5f9e3a /scripts
parent978f2205c791de0e02c8802a645bea657408abfd (diff)
downloadqemu-3db1ee7c2af2fbbfe259712e3ce74158bc667ad3.zip
qemu-3db1ee7c2af2fbbfe259712e3ce74158bc667ad3.tar.gz
qemu-3db1ee7c2af2fbbfe259712e3ce74158bc667ad3.tar.bz2
qemu-timer: do not take the lock in timer_pending
We can deduce the result from expire_time, by making it always -1 if the timer is not in the active_timers list. We need to check against negative times passed to timer_mod_ns; clamping them to zero is not a problem because the only clock that has a zero value at VM startup is QEMU_CLOCK_VIRTUAL, and it is monotonic so it cannot be non-zero. QEMU_CLOCK_HOST, instead, is not monotonic but it cannot go to negative values unless the host time is seriously screwed up and points to the 1960s. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions