]> git.proxmox.com Git - mirror_qemu.git/commit
event_notifier: handle initialization failure better
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 17 Dec 2020 15:00:40 +0000 (17:00 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Feb 2021 13:43:55 +0000 (14:43 +0100)
commite34e47eb28c0b8119be2e958450763701b38ac3a
tree93a674a4265cb19d4b4a061bd76990355fb23d5b
parentdec2bb14b8c4824c4d1da9df91b4dbe1bd89cf04
event_notifier: handle initialization failure better

Add 'initialized' field and use it to avoid touching event notifiers which are
either not initialized or if their initialization failed.

This is somewhat a hack, but it seems the less intrusive way to make
virtio code deal with event notifiers that failed initialization.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20201217150040.906961-4-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/event_notifier.h
util/event_notifier-posix.c