virtio: move ioeventfd_started flag to VirtioBusState
commitb13d39622703ae7449f769c14da7a90f20f2c25c
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Oct 2016 20:48:06 +0000 (21 22:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 30 Oct 2016 17:51:32 +0000 (30 19:51 +0200)
tree1b1598e226b141372692c7d24efb95b965313bf6
parent4ddcc2d5cb8f14d43a4ed31beaad982557a418fd
virtio: move ioeventfd_started flag to VirtioBusState

This simplifies the code and removes the ioeventfd_started
and ioeventfd_set_started callback.  The only difference is
in how virtio-ccw handles an error---it doesn't disable
ioeventfd forever anymore.  It was the only backend to do
so, and if desired this behavior should be implemented in

virtio-bus.c.

Instead of ioeventfd_started, the ioeventfd_assign callback now
determines whether the virtio bus supports host notifiers.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/dataplane/virtio-blk.c
hw/s390x/virtio-ccw.c
hw/s390x/virtio-ccw.h
hw/scsi/virtio-scsi-dataplane.c
hw/virtio/vhost.c
hw/virtio/virtio-bus.c
hw/virtio/virtio-mmio.c
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h
include/hw/virtio/virtio-bus.h