[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/7] vdpa: enable cvq svq if data vq are shadowed
From: |
Eugenio Pérez |
Subject: |
[PATCH 6/7] vdpa: enable cvq svq if data vq are shadowed |
Date: |
Fri, 28 Jul 2023 19:20:27 +0200 |
Previous to this commit, it was assumed that data can only be shadowed
with x-cvq, or if a migration was in place. So CVQ did not need to
check for migration.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
---
net/vhost-vdpa.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c
index 2c1cfda657..118837c6b9 100644
--- a/net/vhost-vdpa.c
+++ b/net/vhost-vdpa.c
@@ -514,11 +514,10 @@ static int vhost_vdpa_net_cvq_start(NetClientState *nc)
s0 = vhost_vdpa_net_first_nc_vdpa(s);
v->shadow_data = s0->vhost_vdpa.shadow_vqs_enabled;
- v->shadow_vqs_enabled = s->always_svq;
+ v->shadow_vqs_enabled = v->shadow_data;
s->vhost_vdpa.address_space_id = VHOST_VDPA_GUEST_PA_ASID;
- if (s->vhost_vdpa.shadow_data) {
- /* SVQ is already configured for all virtqueues */
+ if (s->always_svq) {
goto out;
}
--
2.39.3
- [PATCH 0/7] Enable vdpa net migration with features depending on CVQ, Eugenio Pérez, 2023/07/28
- [PATCH 2/7] vdpa: add should_enable op, Eugenio Pérez, 2023/07/28
- [PATCH 1/7] vdpa: export vhost_vdpa_set_vring_ready, Eugenio Pérez, 2023/07/28
- [PATCH 3/7] vdpa: use virtio_ops->should_enable at vhost_vdpa_set_vrings_ready, Eugenio Pérez, 2023/07/28
- [PATCH 4/7] vdpa: add stub vhost_vdpa_should_enable, Eugenio Pérez, 2023/07/28
- [PATCH 5/7] vdpa: delay enable of data vqs, Eugenio Pérez, 2023/07/28
- [PATCH 6/7] vdpa: enable cvq svq if data vq are shadowed,
Eugenio Pérez <=
- [PATCH 7/7] vdpa: remove net cvq migration blocker, Eugenio Pérez, 2023/07/28
- Re: [PATCH 0/7] Enable vdpa net migration with features depending on CVQ, Jason Wang, 2023/07/31