qemu-e2k/hw/virtio
Paolo Bonzini fa283a4a8b virtio: inline virtio_queue_set_host_notifier_fd_handler
Of the three possible parameter combinations for
virtio_queue_set_host_notifier_fd_handler:

- assign=true/set_handler=true is only called from
  virtio_device_start_ioeventfd

- assign=false/set_handler=false is called from
  set_host_notifier_internal but it only does something when
  reached from virtio_device_stop_ioeventfd_impl; otherwise
  there is no EventNotifier set on qemu_get_aio_context().

- assign=true/set_handler=false is called from
  set_host_notifier_internal, but it is not doing anything:
  with the new start_ioeventfd and stop_ioeventfd methods,
  there is never an EventNotifier set on qemu_get_aio_context()
  at this point.  This is enforced by the assertion in
  virtio_bus_set_host_notifier.

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>
2016-10-30 20:06:21 +02:00
..
Makefile.objs
trace-events
vhost-backend.c
vhost-user.c
vhost-vsock.c
vhost.c virtio: remove ioeventfd_disabled altogether 2016-10-30 20:06:20 +02:00
virtio-balloon.c
virtio-bus.c virtio: inline virtio_queue_set_host_notifier_fd_handler 2016-10-30 20:06:21 +02:00
virtio-mmio.c virtio: introduce virtio_device_ioeventfd_enabled 2016-10-30 19:51:32 +02:00
virtio-pci.c virtio: introduce virtio_device_ioeventfd_enabled 2016-10-30 19:51:32 +02:00
virtio-pci.h virtio: move ioeventfd_started flag to VirtioBusState 2016-10-30 19:51:32 +02:00
virtio-rng.c
virtio.c virtio: inline virtio_queue_set_host_notifier_fd_handler 2016-10-30 20:06:21 +02:00