vhost: add vhost_svq_poll
commit3f44d13dda83d390cc9563e56e7d337e4f6223f4
authorEugenio Pérez <eperezma@redhat.com>
Wed, 20 Jul 2022 06:59:38 +0000 (20 08:59 +0200)
committerJason Wang <jasowang@redhat.com>
Wed, 20 Jul 2022 08:58:08 +0000 (20 16:58 +0800)
treed14ef9b7e3cba526cb2fa8e4e2b6367faaffb887
parentd0291f3f284d3bc220cdb13b0d8ac8a44eb5fd4c
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>
hw/virtio/vhost-shadow-virtqueue.c
hw/virtio/vhost-shadow-virtqueue.h