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>
Showing
- hw/block/dataplane/virtio-blk.c 1 addition, 1 deletionhw/block/dataplane/virtio-blk.c
- hw/s390x/virtio-ccw.c 0 additions, 21 deletionshw/s390x/virtio-ccw.c
- hw/s390x/virtio-ccw.h 0 additions, 1 deletionhw/s390x/virtio-ccw.h
- hw/scsi/virtio-scsi-dataplane.c 1 addition, 1 deletionhw/scsi/virtio-scsi-dataplane.c
- hw/virtio/vhost.c 1 addition, 1 deletionhw/virtio/vhost.c
- hw/virtio/virtio-bus.c 6 additions, 8 deletionshw/virtio/virtio-bus.c
- hw/virtio/virtio-mmio.c 0 additions, 18 deletionshw/virtio/virtio-mmio.c
- hw/virtio/virtio-pci.c 0 additions, 17 deletionshw/virtio/virtio-pci.c
- hw/virtio/virtio-pci.h 0 additions, 1 deletionhw/virtio/virtio-pci.h
- include/hw/virtio/virtio-bus.h 7 additions, 10 deletionsinclude/hw/virtio/virtio-bus.h
Loading
Please register or sign in to comment