]> Git Repo - qemu.git/commit - hw/virtio/virtio.c
virtio: remove event notifier cleanup call on de-assign
authorGal Hammer <[email protected]>
Mon, 29 Jan 2018 14:20:56 +0000 (16:20 +0200)
committerMichael S. Tsirkin <[email protected]>
Thu, 8 Feb 2018 19:06:26 +0000 (21:06 +0200)
commit76143618a5a9f33e8bc968f27b3de79d79a286c5
treeeceecea7479562ed49a60aeaa8aa0e1522031c65
parentf41d912023e777d95e782a1ade6338c5fed8b842
virtio: remove event notifier cleanup call on de-assign

The virtio_bus_set_host_notifier function no longer calls
event_notifier_cleanup when a event notifier is removed.

The commit updates the code to match the new behavior and calls
virtio_bus_cleanup_host_notifier after the notifier was de-assign
and no longer in use.

This change is a preparation to allow executing the
virtio_bus_set_host_notifier function in a memory region
transaction.

Signed-off-by: Gal Hammer <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Tested-by: Greg Kurz <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/block/dataplane/virtio-blk.c
hw/scsi/virtio-scsi-dataplane.c
hw/virtio/vhost.c
hw/virtio/virtio-bus.c
hw/virtio/virtio.c
include/hw/virtio/virtio-bus.h
This page took 0.028171 seconds and 4 git commands to generate.