[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 1/5] vdpa: use first queue SVQ state for CVQ default
From: |
Eugenio Pérez |
Subject: |
[PATCH v3 1/5] vdpa: use first queue SVQ state for CVQ default |
Date: |
Tue, 22 Aug 2023 10:53:26 +0200 |
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>
---
net/vhost-vdpa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c
index 9795306742..a772540250 100644
--- a/net/vhost-vdpa.c
+++ b/net/vhost-vdpa.c
@@ -505,7 +505,7 @@ 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 = s0->vhost_vdpa.shadow_vqs_enabled;
s->vhost_vdpa.address_space_id = VHOST_VDPA_GUEST_PA_ASID;
if (s->vhost_vdpa.shadow_data) {
--
2.39.3
- [PATCH v3 0/5] Enable vdpa net migration with features depending on CVQ, Eugenio Pérez, 2023/08/22
- [PATCH v3 1/5] vdpa: use first queue SVQ state for CVQ default,
Eugenio Pérez <=
- [PATCH v3 2/5] vdpa: export vhost_vdpa_set_vring_ready, Eugenio Pérez, 2023/08/22
- [PATCH v3 3/5] vdpa: rename vhost_vdpa_net_load to vhost_vdpa_net_cvq_load, Eugenio Pérez, 2023/08/22
- [PATCH v3 4/5] vdpa: move vhost_vdpa_set_vring_ready to the caller, Eugenio Pérez, 2023/08/22
- [PATCH v3 5/5] vdpa: remove net cvq migration blocker, Eugenio Pérez, 2023/08/22
- Re: [PATCH v3 0/5] Enable vdpa net migration with features depending on CVQ, Lei Yang, 2023/08/28