xemu/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 vhost-vsock: add virtio sockets device 2016-09-10 00:28:08 +03:00
trace-events trace: move hw/virtio/virtio-balloon.c trace points into correct file 2016-09-28 19:17:55 +01:00
vhost-backend.c vhost-vsock: add virtio sockets device 2016-09-10 00:28:08 +03:00
vhost-user.c char: use qemu_chr_fe* functions with CharBackend argument 2016-10-24 15:27:21 +02:00
vhost-vsock.c virtio: cleanup VMSTATE_VIRTIO_DEVICE 2016-10-10 02:21:43 +03:00
vhost.c virtio: remove ioeventfd_disabled altogether 2016-10-30 20:06:20 +02:00
virtio-balloon.c virtio/migration: Migrate balloon to VMState 2016-10-30 19:51:31 +02:00
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: cleanup VMSTATE_VIRTIO_DEVICE 2016-10-10 02:21:43 +03:00
virtio.c virtio: inline virtio_queue_set_host_notifier_fd_handler 2016-10-30 20:06:21 +02:00