]> git.proxmox.com Git - mirror_qemu.git/commit
vdpa: Move vhost_svq_poll() to the caller of vhost_vdpa_net_cvq_add()
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 13 Oct 2023 08:09:39 +0000 (16:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Oct 2023 14:41:50 +0000 (10:41 -0400)
commita864a3219d7e63569583d204c12bff2a0f90463e
treeb48123c2e6298acdebaac6fd80be85bf203c2b5f
parent24e59cfe0cb53416b06c2c117bc22ff22dc54df3
vdpa: Move vhost_svq_poll() to the caller of vhost_vdpa_net_cvq_add()

This patch moves vhost_svq_poll() to the caller of
vhost_vdpa_net_cvq_add() and introduces a helper funtion.

By making this change, next patches in this series is
able to refactor vhost_vdpa_net_load_x() only to delay
the polling and checking process until either the SVQ
is full or control commands shadow buffers are full.

Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Message-Id: <196cadb55175a75275660c6634a538289f027ae3.1697165821.git.yin31149@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-vdpa.c