Re: [PATCH v4 10/15] vhost-net: vhost-kernel: introduce vhost_net_virtqueue_reset()

2022-09-13 Thread Jason Wang
On Mon, Sep 12, 2022 at 1:22 AM Kangjie Xu wrote: > > 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

[PATCH v4 10/15] vhost-net: vhost-kernel: introduce vhost_net_virtqueue_reset()

2022-09-11 Thread Kangjie Xu
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 i