virtio: introduce virtio_device_ioeventfd_enabled
commit8e93cef14e6f32adf6914b30b096039e6264f0e3
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Oct 2016 20:48:08 +0000 (21 22:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 30 Oct 2016 17:51:32 +0000 (30 19:51 +0200)
treeabf77c2c554b5efcda21167689f61c9e04f4a0b2
parentff4c07df67f098234d9e49850435ccb49b8cbbdc
virtio: introduce virtio_device_ioeventfd_enabled

This will be used to forbid iothread configuration when the
proxy does not allow using ioeventfd.  To simplify the implementation,
change the direction of the ioeventfd_disabled callback too.

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/s390x/virtio-ccw.c
hw/virtio/virtio-bus.c
hw/virtio/virtio-mmio.c
hw/virtio/virtio-pci.c
hw/virtio/virtio.c
include/hw/virtio/virtio-bus.h
include/hw/virtio/virtio.h