]> git.proxmox.com Git - mirror_qemu.git/commit
vdpa: use first queue SVQ state for CVQ default
authorEugenio Pérez <eperezma@redhat.com>
Tue, 22 Aug 2023 08:53:26 +0000 (10:53 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 08:54:17 +0000 (04:54 -0400)
commitb40eba9cdde3b041f02a9cbaa23ca0eeda9bd9c1
treec27c1b37ba9fcb07bce3fe744e0eebedb09f5996
parent43d6376980d5567f2a6d00cfb30d10c0961671e6
vdpa: use first queue SVQ state for CVQ default

Previous to this patch the only way CVQ would be shadowed is if it does
support to isolate CVQ group or if all vqs were shadowed from the
beginning.  The second condition was checked at the beginning, and no
more configuration was done.

After this series we need to check if data queues are shadowed because
they are in the middle of the migration.  As checking if they are
shadowed already covers the previous case, let's just mimic it.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230822085330.3978829-2-eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-vdpa.c