summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-pci.h
diff options
context:
space:
mode:
authorPaolo Bonzini2016-10-21 22:48:06 +0200
committerMichael S. Tsirkin2016-10-30 18:51:32 +0100
commitb13d39622703ae7449f769c14da7a90f20f2c25c (patch)
tree1b1598e226b141372692c7d24efb95b965313bf6 /hw/virtio/virtio-pci.h
parentvirtio: move ioeventfd_disabled flag to VirtioBusState (diff)
downloadqemu-b13d39622703ae7449f769c14da7a90f20f2c25c.tar.gz
qemu-b13d39622703ae7449f769c14da7a90f20f2c25c.tar.xz
qemu-b13d39622703ae7449f769c14da7a90f20f2c25c.zip
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>
Diffstat (limited to 'hw/virtio/virtio-pci.h')
-rw-r--r--hw/virtio/virtio-pci.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index b13d28d6d0..4d206c80ca 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -158,7 +158,6 @@ struct VirtIOPCIProxy {
uint32_t guest_features[2];
VirtIOPCIQueue vqs[VIRTIO_QUEUE_MAX];
- bool ioeventfd_started;
VirtIOIRQFD *vector_irqfd;
int nvqs_with_notifiers;
VirtioBusState bus;