]> git.proxmox.com Git - mirror_qemu.git/commit
vdpa: Send cvq state load commands in parallel
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 13 Oct 2023 08:09:42 +0000 (16:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Oct 2023 14:41:50 +0000 (10:41 -0400)
commitacec5f685c7ad6bd3c9bb9a57d4e509160480376
treee38ecc43958fbc2ed6d16ed07cdfd07463ff2cc2
parent99d6a32469debf1a48921125879b614d15acfb7a
vdpa: Send cvq state load commands in parallel

This patch enables sending CVQ state load commands
in parallel at device startup by following steps:

  * Refactor vhost_vdpa_net_load_cmd() to iterate through
the control commands shadow buffers. This allows different
CVQ state load commands to use their own unique buffers.

  * Delay the polling and checking of buffers until either
the SVQ is full or control commands shadow buffers are full.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1578
Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Acked-by: Eugenio PĂ©rez <eperezma@redhat.com>
Message-Id: <9350f32278e39f7bce297b8f2d82dac27c6f8c9a.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