diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-07-05 17:16:29 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-07-12 14:08:11 +0300 |
commit | b1f416aa8d870fab71030abc9401cfc77b948e8e (patch) | |
tree | 85ce6fbf099085dcb82a1dbddd52d18585c989c6 /hw/virtio.h | |
parent | 6bf819f0a2a77dc8504651f369293f0efac54fe5 (diff) |
virtio: move common ioeventfd handling out of virtio-pci
All transports can use the same event handler for the ioeventfd, though
the exact setup (address/memory region) will be specific.
This lets virtio use event_notifier_set_handler.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/virtio.h')
-rw-r--r-- | hw/virtio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio.h b/hw/virtio.h index 85aabe53d8..294948519c 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -232,6 +232,7 @@ VirtQueue *virtio_get_queue(VirtIODevice *vdev, int n); int virtio_queue_get_id(VirtQueue *vq); EventNotifier *virtio_queue_get_guest_notifier(VirtQueue *vq); EventNotifier *virtio_queue_get_host_notifier(VirtQueue *vq); +void virtio_queue_set_host_notifier_fd_handler(VirtQueue *vq, bool assign); void virtio_queue_notify_vq(VirtQueue *vq); void virtio_irq(VirtQueue *vq); #endif |