diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2016-12-01 09:58:02 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-12-22 16:00:24 +0100 |
| commit | 8caa05d8891d0a09dc4c00908c24c6ddfd872bbe (patch) | |
| tree | 477839f7d54f8b6657981cf242c622595ce9430f /include/qemu/timer.h | |
| parent | e7a9f35321a048922233c90f32e91d033faac176 (diff) | |
| download | focaccia-qemu-8caa05d8891d0a09dc4c00908c24c6ddfd872bbe.tar.gz focaccia-qemu-8caa05d8891d0a09dc4c00908c24c6ddfd872bbe.zip | |
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/qemu/timer.h')
0 files changed, 0 insertions, 0 deletions