On 2020/5/9 上午12:32, Cindy Lu wrote:
From: Jason Wang <jasow...@redhat.com>

Signed-off-by: Jason Wang <jasow...@redhat.com>
---
  hw/net/vhost_net.c | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index 1af39abaf3..eff9ec9177 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -383,6 +383,10 @@ int vhost_net_start(VirtIODevice *dev, NetClientState *ncs,
                  goto err_start;
              }
          }
+
+        if (virtio_queue_enabled(dev, i)) {
+            vhost_set_vring_ready(peer);
+        }
      }
return 0;


Please place the patch before vhost-vdpa.

Thanks


Reply via email to