]> git.proxmox.com Git - mirror_qemu.git/commit
vdpa: Avoid using vhost_vdpa_net_load_*() outside vhost_vdpa_net_load()
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 13 Oct 2023 08:09:37 +0000 (16:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Oct 2023 14:41:49 +0000 (10:41 -0400)
commit327dedb8df91f57ef917ab5b5db519146ee6f08b
tree8ffa09500423b114de61dfd4ed6469f029f3a307
parent0e6bff0d43bf04c6e7a16c2775879816ca056b3d
vdpa: Avoid using vhost_vdpa_net_load_*() outside vhost_vdpa_net_load()

Next patches in this series will refactor vhost_vdpa_net_load_cmd()
to iterate through the control commands shadow buffers, allowing QEMU
to send CVQ state load commands in parallel at device startup.

Considering that QEMU always forwards the CVQ command serialized
outside of vhost_vdpa_net_load(), it is more elegant to send the
CVQ commands directly without invoking vhost_vdpa_net_load_*() helpers.

Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Acked-by: Eugenio PĂ©rez <eperezma@redhat.com>
Message-Id: <254f0618efde7af7229ba4fdada667bb9d318991.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