virtio: export vring_notify as virtio_should_notify
commitadb3feda8daeacb63d14b086ef60ccf963699096
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 14 Feb 2016 17:17:07 +0000 (14 18:17 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Feb 2016 11:14:18 +0000 (25 13:14 +0200)
tree051d5b7c93fee864b0ed3c1edc4ae22105cfdbb2
parenta1afb6062e779804d21b206c854425663a194be2
virtio: export vring_notify as virtio_should_notify

Virtio dataplane needs to trigger the irq manually through the
guest notifier.  Export virtio_should_notify so that it can be
used around event_notifier_set.

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>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h