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
-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
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
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
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
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
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
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 写道:
8 matches
Mail list logo