]> git.proxmox.com Git - mirror_qemu.git/commit
vhost: Expose vhost_svq_available_slots()
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 13 Oct 2023 08:09:41 +0000 (16:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Oct 2023 14:41:50 +0000 (10:41 -0400)
commit99d6a32469debf1a48921125879b614d15acfb7a
tree800536d88405713d576a87123095e33b1b126a56
parent1d7e2a8fd4996fdb20d74fce41fe897311f3b06a
vhost: Expose vhost_svq_available_slots()

Next patches in this series will delay the polling
and checking of buffers until either the SVQ is
full or control commands shadow buffers are full,
no longer perform an immediate poll and check of
the device's used buffers for each CVQ state load command.

To achieve this, this patch exposes
vhost_svq_available_slots(), allowing QEMU to know
whether the SVQ is full.

Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Acked-by: Eugenio PĂ©rez <eperezma@redhat.com>
Message-Id: <25938079f0bd8185fd664c64e205e629f7a966be.1697165821.git.yin31149@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c
hw/virtio/vhost-shadow-virtqueue.h