[PATCH v2 0/2] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-09-04 Thread Kangjie Xu
0801063902.129329-1-xuanz...@linux.alibaba.com/ QEMU Patch: https://lore.kernel.org/qemu-devel/cover.1661510725.git.kangjie...@linux.alibaba.com/T/ https://lore.kernel.org/qemu-devel/cover.1661414345.git.kangjie...@linux.alibaba.com/T/ Looking forward to your review and comments. Kangjie

[PATCH v2 2/2] vhost: introduce VHOST_USER_RESET_VRING

2022-09-04 Thread Kangjie Xu
-end. The reply is needed to ensure that the reset operation is complete. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo --- lib/vhost/vhost.c | 2 +- lib/vhost/vhost.h | 1 + lib/vhost/vhost_user.c | 27 ++- lib/vhost/vhost_user.h | 1 + 4 files changed, 29

[PATCH v2 1/2] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-09-04 Thread Kangjie Xu
Add VIRTIO_F_RING_RESET, which indicates that the driver can reset a queue individually. The feature is added to virtio-spec 1.2. The relevant information is in https://github.com/oasis-tcs/virtio-spec/issues/124 Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo --- lib/vhost/vhost.h | 8

[PATCH v3 0/2] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-09-11 Thread Kangjie Xu
1662916759.git.kangjie.xu@ linux.alibaba.com/ Looking forward to your review and comments. Kangjie Xu (2): vhost: destroy device when all vqs are inactive vhost: support VIRTIO_F_RING_RESET for vhost-user lib/vhost/vhost.h | 8 +++- lib/vhost/vhost_user.c | 10 -- 2 files changed, 15 i

[PATCH v3 1/2] vhost: destroy device when all vqs are inactive

2022-09-11 Thread Kangjie Xu
going to be destroyed. This helps us to simplify the implementation when resetting a virtqueue. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo --- lib/vhost/vhost_user.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/vhost/vhost_user.c b/lib/vhost

[PATCH v3 2/2] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-09-11 Thread Kangjie Xu
Add VIRTIO_F_RING_RESET, which indicates that the driver can reset a queue individually. The feature is added to virtio-spec 1.2. The relevant information is in https://github.com/oasis-tcs/virtio-spec/issues/124 Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo --- lib/vhost/vhost.h | 8

[PATCH 1/1] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-07-19 Thread Kangjie Xu
VHOST_USER_SET_VRING_CALL f. VHOST_USER_SET_VRING_ENABLE The last VHOST_USER_SET_VRING_ENABLE message with "payload.state.num" set to 1, will be sent to enable the virtqueue and the restart process is finished. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo --- Test environmen

Re: [PATCH 1/1] vhost: support VIRTIO_F_RING_RESET for vhost-user

2022-07-27 Thread Kangjie Xu
This patch will be updated in the future. We'll fix some issues based on some review comments from QEMU community. We intend to add a new vhost protocol message for virtqueue reset. Please let me know any questions or suggestions you might have. Thanks 在 2022/7/19 15:26, Kangjie Xu 写道: