This refactors the code for enabling/disabling host notifiers. Not useful by itself, but seems to be needed for other projects. So I'm not merging this yet, will be included with other patches. Posting now for early review.
Michael S. Tsirkin (3): virtio: interface to enable/disable host notifiers dataplane/virtio-blk.c: new API to enable notifiers dataplane/virtio-scsi: new API to enable host notifiers include/hw/virtio/virtio.h | 4 ++- hw/block/dataplane/virtio-blk.c | 6 ++--- hw/scsi/virtio-scsi-dataplane.c | 14 +++------- hw/virtio/vhost.c | 45 ++----------------------------- hw/virtio/virtio.c | 59 ++++++++++++++++++++++++++++++++++++++++- 5 files changed, 70 insertions(+), 58 deletions(-) -- MST