commit | 8caa05d8891d0a09dc4c00908c24c6ddfd872bbe | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Dec 01 09:58:02 2016 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Dec 22 16:00:24 2016 +0100 |
tree | 477839f7d54f8b6657981cf242c622595ce9430f | |
parent | e7a9f35321a048922233c90f32e91d033faac176 [diff] |
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>