qemu-timer: introduce timer attributes
commit89a603a0c80ae3d6a8711571550b2ae9a01ea909
authorArtem Pisarenko <artem.k.pisarenko@gmail.com>
Wed, 17 Oct 2018 08:24:19 +0000 (17 14:24 +0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Oct 2018 11:44:03 +0000 (19 13:44 +0200)
tree1d6cc3a535a2f02c1bf249ade3a0368bbdb0dc55
parent05ff8dc32fa124e7bbf77a257f863f3685c7be9d
qemu-timer: introduce timer attributes

Attributes are simple flags, associated with individual timers for their
whole lifetime.  They intended to be used to mark individual timers for
special handling when they fire.

New/init functions family in timer interface updated and refactored (new
'attribute' argument added, timer_list replaced with timer_list_group+type
combinations, comments improved to avoid info duplication).  Also existing
aio interface extended with attribute-enabled variants of functions,
which create/initialize timers.

Signed-off-by: Artem Pisarenko <artem.k.pisarenko@gmail.com>
Message-Id: <f47b81dbce734e9806f9516eba8ca588e6321c2f.1539764043.git.artem.k.pisarenko@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/block/aio.h
include/qemu/timer.h
tests/ptimer-test-stubs.c
util/qemu-timer.c