summaryrefslogtreecommitdiffstats
path: root/hw/nios2/boot.c
diff options
context:
space:
mode:
authorKangjie Xu2022-10-17 11:25:52 +0200
committerMichael S. Tsirkin2022-11-07 19:12:20 +0100
commitc2daa08e1713c4799487bae6daf5d41e024ff736 (patch)
treeb5a6e864f941c6575a1baaffea60ef9d73ec0b85 /hw/nios2/boot.c
parentvhost: expose vhost_virtqueue_stop() (diff)
downloadqemu-c2daa08e1713c4799487bae6daf5d41e024ff736.tar.gz
qemu-c2daa08e1713c4799487bae6daf5d41e024ff736.tar.xz
qemu-c2daa08e1713c4799487bae6daf5d41e024ff736.zip
vhost-net: vhost-kernel: introduce vhost_net_virtqueue_reset()
Introduce vhost_virtqueue_reset(), which can reset the specific virtqueue in the device. Then it will unmap vrings and the desc of the virtqueue. Here we do not reuse the vhost_net_stop_one() or vhost_dev_stop(), because they work at queue pair level. We do not use vhost_virtqueue_stop() because it may stop the device in the backend. This patch only considers the case of vhost-kernel, when NetClientDriver is NET_CLIENT_DRIVER_TAP. Furthermore, we do not need net->nc->info->poll() because it enables userspace datapath and we want to stop all datapaths for this reset virtqueue here. Signed-off-by: Kangjie Xu <kangjie.xu@linux.alibaba.com> Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20221017092558.111082-10-xuanzhuo@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/nios2/boot.c')
0 files changed, 0 insertions, 0 deletions