diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2022-07-20 08:59:38 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2022-07-20 16:58:08 +0800 |
commit | 3f44d13dda83d390cc9563e56e7d337e4f6223f4 (patch) | |
tree | d14ef9b7e3cba526cb2fa8e4e2b6367faaffb887 /hw/virtio/vhost-shadow-virtqueue.h | |
parent | d0291f3f284d3bc220cdb13b0d8ac8a44eb5fd4c (diff) | |
download | qemu-3f44d13dda83d390cc9563e56e7d337e4f6223f4.zip qemu-3f44d13dda83d390cc9563e56e7d337e4f6223f4.tar.gz qemu-3f44d13dda83d390cc9563e56e7d337e4f6223f4.tar.bz2 |
vhost: add vhost_svq_poll
It allows the Shadow Control VirtQueue to wait for the device to use the
available buffers.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-shadow-virtqueue.h')
-rw-r--r-- | hw/virtio/vhost-shadow-virtqueue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/vhost-shadow-virtqueue.h b/hw/virtio/vhost-shadow-virtqueue.h index dd78f4b..cf442f7 100644 --- a/hw/virtio/vhost-shadow-virtqueue.h +++ b/hw/virtio/vhost-shadow-virtqueue.h @@ -89,6 +89,7 @@ void vhost_svq_push_elem(VhostShadowVirtqueue *svq, int vhost_svq_add(VhostShadowVirtqueue *svq, const struct iovec *out_sg, size_t out_num, const struct iovec *in_sg, size_t in_num, VirtQueueElement *elem); +size_t vhost_svq_poll(VhostShadowVirtqueue *svq); void vhost_svq_set_svq_kick_fd(VhostShadowVirtqueue *svq, int svq_kick_fd); void vhost_svq_set_svq_call_fd(VhostShadowVirtqueue *svq, int call_fd); |