aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-12-01 09:58:02 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-12-22 16:00:24 +0100
commit8caa05d8891d0a09dc4c00908c24c6ddfd872bbe (patch)
tree477839f7d54f8b6657981cf242c622595ce9430f /include
parente7a9f35321a048922233c90f32e91d033faac176 (diff)
downloadqemu-8caa05d8891d0a09dc4c00908c24c6ddfd872bbe.zip
qemu-8caa05d8891d0a09dc4c00908c24c6ddfd872bbe.tar.gz
qemu-8caa05d8891d0a09dc4c00908c24c6ddfd872bbe.tar.bz2
qemu-timer: check active_timers outside lock/event
This avoids taking the active_timers_lock or resetting/setting the timers_done_ev if there are no active timers. This removes a small (2-3%) source of overhead for dataplane. The list is then checked again inside the lock, or a NULL pointer could be dereferenced. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions