diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2022-07-20 08:59:37 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2022-07-20 16:58:08 +0800 |
commit | d0291f3f284d3bc220cdb13b0d8ac8a44eb5fd4c (patch) | |
tree | 0345b57e61c6c1fbfc0b369fe46750ce21be5cfa /hw/virtio/vhost-shadow-virtqueue.c | |
parent | 432efd144e990b6e040862de25f8f0b6a6eeb03d (diff) | |
download | qemu-d0291f3f284d3bc220cdb13b0d8ac8a44eb5fd4c.zip qemu-d0291f3f284d3bc220cdb13b0d8ac8a44eb5fd4c.tar.gz qemu-d0291f3f284d3bc220cdb13b0d8ac8a44eb5fd4c.tar.bz2 |
vhost: Expose vhost_svq_add
This allows external parts of SVQ to forward custom buffers to the
device.
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.c')
-rw-r--r-- | hw/virtio/vhost-shadow-virtqueue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/virtio/vhost-shadow-virtqueue.c b/hw/virtio/vhost-shadow-virtqueue.c index 1669b1f..c3a75ca 100644 --- a/hw/virtio/vhost-shadow-virtqueue.c +++ b/hw/virtio/vhost-shadow-virtqueue.c @@ -238,9 +238,9 @@ static void vhost_svq_kick(VhostShadowVirtqueue *svq) * * Return -EINVAL if element is invalid, -ENOSPC if dev queue is full */ -static 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) +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) { unsigned qemu_head; unsigned ndescs = in_num + out_num; |