Message ID | 20200508163218.22592-9-lulu@redhat.com |
---|---|
State | New |
Headers | show |
Series | vDPA support in qemu | expand |
On 2020/5/9 上午12:32, Cindy Lu wrote: > From: Jason Wang <jasowang@redhat.com> > > Signed-off-by: Jason Wang <jasowang@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
On Sat, May 9, 2020 at 11:04 AM Jason Wang <jasowang@redhat.com> wrote: > > > On 2020/5/9 上午12:32, Cindy Lu wrote: > > From: Jason Wang <jasowang@redhat.com> > > > > Signed-off-by: Jason Wang <jasowang@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 > Sure will fix this
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;