[dpdk-dev] [PATCH 04/10] vhost: add two new messages to support a shared buffer

2019-09-19 Thread JinYu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/vhost.h | 7

[dpdk-dev] [PATCH v7 11/11] vhost: add vhost-user-blk example which support inflight

2019-09-17 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: Jin Yu --- V1 - add the case. V2 - add the rte_vhost prefix. V3 - add packed ring support --- examples/v

[dpdk-dev] [PATCH v7 09/11] vhost: add an API for judging vq format

2019-09-17 Thread JinYu
This patch introduces an API for getting virtqueue format. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 13 + lib/librte_vhost/vhost.c | 12 2 files changed, 25 insertions(+) diff --g

[dpdk-dev] [PATCH v7 10/11] vhost: add APIs to rte_vhost version map

2019-09-17 Thread JinYu
add all the added experimental APIs which are in the rte_vhost.h to the rte_vhost_version.map Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost_version.map | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/l

[dpdk-dev] [PATCH v7 07/11] vhost: add APIs for user getting inflight ring

2019-09-17 Thread JinYu
This patch introduces two APIs. one is for getting inflgiht ring and the other is for getting base. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 40 lib/librte_vhost/vhost.c | 59 +

[dpdk-dev] [PATCH v7 08/11] vhost: fix vring functions to support packed ring

2019-09-17 Thread JinYu
This patch fix two APIs so user can get the packed ring support. Fixes: fceec568 (vhost: add packed ring) Cc: sta...@dpdk.org Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/vhost.c | 68 +---

[dpdk-dev] [PATCH v7 03/11] vhost: add the inflight structure

2019-09-17 Thread JinYu
This patch adds the inflight queue region structure include the split and packed. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 43 1 file changed, 43 insertions(+) diff --git

[dpdk-dev] [PATCH v7 06/11] vhost: add the APIs to operate inflight ring

2019-09-17 Thread JinYu
This patch introduces three APIs to operate the inflight ring. Three APIs are set, set last and clear. It includes split and packed ring. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 116 +++ lib/librt

[dpdk-dev] [PATCH v7 02/11] vhost: add packed ring

2019-09-17 Thread JinYu
This patch add the packed ring in the rte_vhost_vring. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/rte_vhost.h b

[dpdk-dev] [PATCH v7 00/11] vhost: support inflight share memory protocol feature

2019-09-17 Thread JinYu
t-user-blk-pci. eg: -chardev socket,id=spdk_vhost_blk0,reconnect=1,path=\ -device vhost-user-blk-pci,ring_packed=on,chardev=spdk_vhost_blk0,num-queues=1\ 5, run fio in the guest 6, kill the example and run again. 7, the fio in the guest should continue run without erro

[dpdk-dev] [PATCH v7 05/11] vhost: checkout and cleanup the resubmit inflight information

2019-09-17 Thread JinYu
This patch shows how to checkout the inflight ring and construct the resubmit information also include destroying resubmit info. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 19 lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v7 04/11] vhost: add two new messages to support a shared buffer

2019-09-17 Thread JinYu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/vhost.h | 7

[dpdk-dev] [PATCH v7 01/11] vhost: add the inflight description

2019-09-17 Thread JinYu
This patch add the inflight message description and the inflight share fd protocol feature flag. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed v3 - add rte_vhost_ p

[dpdk-dev] [PATCH v6 10/10] vhost: add vhost-user-blk example which support inflight

2019-08-28 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: Jin Yu --- V1 - add the case. V2 - add the rte_vhost prefix. V3 - add packed ring support --- examples/v

[dpdk-dev] [PATCH v6 09/10] vhost: add an API for judging vq format

2019-08-28 Thread JinYu
This patch introduces an API for getting virtqueue format. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 13 + lib/librte_vhost/vhost.c | 12 2 files changed, 25 insertions(+) diff --g

[dpdk-dev] [PATCH v6 07/10] vhost: add APIs for user getting inflight ring

2019-08-28 Thread JinYu
This patch introduces two APIs. one is for getting inflgiht ring and the other is for getting base. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 40 lib/librte_vhost/vhost.c | 59 +

[dpdk-dev] [PATCH v6 08/10] vhost: fix vring functions to support packed ring

2019-08-28 Thread JinYu
This patch fix two APIs so user can get the packed ring support. Fixes: fceec568 (vhost: add packed ring) Cc: sta...@dpdk.org Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/vhost.c | 68 +---

[dpdk-dev] [PATCH v6 03/10] vhost: add the inflight structure

2019-08-28 Thread JinYu
This patch adds the inflight queue region structure include the split and packed. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 43 1 file changed, 43 insertions(+) diff --git

[dpdk-dev] [PATCH v6 06/10] vhost: add the APIs to operate inflight ring

2019-08-28 Thread JinYu
This patch introduces three APIs to operate the inflight ring. Three APIs are set, set last and clear. It includes split and packed ring. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 116 lib/libr

[dpdk-dev] [PATCH v6 04/10] vhost: add two new messages to support a shared buffer

2019-08-28 Thread JinYu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/vhost.h | 7

[dpdk-dev] [PATCH v6 05/10] vhost: checkout and cleanup the resubmit inflight information

2019-08-28 Thread JinYu
This patch shows how to checkout the inflight ring and construct the resubmit information also include destroying resubmit info. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 19 lib/librte_vhost/vhost.c

[dpdk-dev] [PATCH v6 00/10] vhost: support inflight share memory protocol feature

2019-08-28 Thread JinYu
rdev socket,id=spdk_vhost_blk0,reconnect=1,path=\ -device vhost-user-blk-pci,ring_packed=on,chardev=spdk_vhost_blk0,num-queues=1\ 5, run fio in the guest 6, kill the example and run again. 7, the fio in the guest should continue run without errors. JinYu (10): vhost: add the inflig

[dpdk-dev] [PATCH v6 01/10] vhost: add the inflight description

2019-08-28 Thread JinYu
This patch add the inflight message description and the inflight share fd protocol feature flag. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed v3 - add rte_vhost_ p

[dpdk-dev] [PATCH v6 02/10] vhost: add packed ring

2019-08-28 Thread JinYu
This patch add the packed ring in the rte_vhost_vring. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: Jin Yu --- lib/librte_vhost/rte_vhost.h | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/rte_vhost.h b

[dpdk-dev] [PATCH v5 1/2] vhost: support inflight share memory protocol feature

2019-08-06 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: Lin Li Signed-off-by: Xun Ni Signed-off-by: Yu Zhang Signed-off-by: JinYu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or

[dpdk-dev] [PATCH v5 2/2] vhost: add vhost-user-blk example which support inflight

2019-08-06 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: JinYu --- V1 - add the case. V2 - add the rte_vhost prefix. V3 - add packed ring support --- examples

[dpdk-dev] [PATCH v5 0/2] vhost: support inflight share memory protocol feature

2019-08-06 Thread JinYu
r-blk-pci. eg: -chardev socket,id=spdk_vhost_blk0,reconnect=1,path=\ -device vhost-user-blk-pci,ring_packed=on,chardev=spdk_vhost_blk0,num-queues=1\ 5, run fio in the guest 6, kill the example(vhost-user backend) and run again. 7, the fio in the guest should continue run without err

[dpdk-dev] [PATCH v4 2/2] vhost: Add vhost-user-blk example which support inflight

2019-07-31 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: Jin Yu --- V1 - add the case. V2 - add the rte_vhost prefix. V3 - add packed ring support --- examples/v

[dpdk-dev] [PATCH v4 1/2] vhost: support inflight share memory protocol feature

2019-07-31 Thread JinYu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Firstly, qemu uses VHOST_USER_GET_INFLIGHT_FD to get the shared buffer from backend. Then qemu should send it back through VHOST_USER_S

[dpdk-dev] [PATCH v4 0/2] vhost: support inflight share memory protocol feature

2019-07-31 Thread JinYu
code show how these APIs work and the test has passed. JinYu (2): vhost: support inflight share memory protocol feature vhost: Add vhost-user-blk example which support inflight examples/vhost_blk/Makefile| 67 ++ examples/vhost_blk/blk.c | 122 +++ examples

[dpdk-dev] [PATCH v4 2/2] vhost: Add vhost-user-blk example which support inflight

2019-07-25 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: Jin Yu --- V1 - add the case. V2 - add the rte_vhost prefix. V3 - add packed ring support --- examples/v

[dpdk-dev] [PATCH v4 1/2] vhost: support inflight share memory protocol feature

2019-07-25 Thread JinYu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Firstly, qemu uses VHOST_USER_GET_INFLIGHT_FD to get the shared buffer from backend. Then qemu should send it back through VHOST_USER_S

[dpdk-dev] [PATCH v4 0/2] *** vhost support inflight share memory protocol feature ***

2019-07-25 Thread JinYu
This patches introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Now It can both support split and packed ring. The example code show how these API work. JinYu (2): vhost: support inflight share

[dpdk-dev] [PATCH v3 1/2] vhost: support inflight share memory protocol feature

2019-07-15 Thread JinYu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. Firstly, qemu uses VHOST_USER_GET_INFLIGHT_FD to get the shared buffer from backend. Then qemu should send it back through VHOST_USER_S

[dpdk-dev] [PATCH v3 2/2] vhost: Add vhost-user-blk example which support inflight

2019-07-15 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: JinYu --- V1 - add the case. V2 - add the rte_vhost prefix. --- examples/vhost_blk/Makefile

[dpdk-dev] [PATCH v3 0/2] support inflight share memory protocol feature in vhost

2019-07-15 Thread JinYu
This patch introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. And the example code shows how these APIs work. JinYu (2): vhost: support inflight share memory protocol feature vhost: Add vhost

[dpdk-dev] [PATCH v2 2/2] vhost: Add vhost-user-blk example which support inflight

2019-07-09 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: JinYu --- V1 - add the case. --- examples/vhost_blk/Makefile | 67 +++ examples/vhost_blk

[dpdk-dev] [PATCH v2 1/2] vhost: support inflight share memory protocol feature

2019-07-09 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: LinLi Signed-off-by: XunNi Signed-off-by: YuZhang Signed-off-by: JinYu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed

[dpdk-dev] [PATCH 0/2] support inflight share memory protocol feature

2019-07-08 Thread JinYu
This patches series introduces two new messages VHOST_USER_GET_INFLIGHT_FD and VHOST_USER_SET_INFLIGHT_FD to support transferring a shared buffer between qemu and backend. This shared buffer is used to process inflight I/O when backend reconnect. The example show how these new APIs work. JinYu

[dpdk-dev] [PATCH 2/2] [2/2]vhost: Add vhost-user-blk example which support inflight

2019-07-08 Thread JinYu
A vhost-user-blk example that support inflight feature. It uses the new APIs that introduced in the first patch, so It can show how there APIs work to support inflight feature. Signed-off-by: JinYu --- V1 - add the case. --- examples/vhost_blk/Makefile | 67 +++ examples/vhost_blk

[dpdk-dev] [PATCH 1/2] [1/2]vhost: support inflight share memory protocol feature

2019-07-08 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: LinLi Signed-off-by: XunNi Signed-off-by: YuZhang Signed-off-by: JinYu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed

[dpdk-dev] [PATCH v2] [1/2]vhost: support inflight share memory protocol feature

2019-07-08 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: LinLi Signed-off-by: XunNi Signed-off-by: YuZhang Signed-off-by: JinYu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed

[dpdk-dev] [PATCH v2] [v2, 1/2]vhost: support inflight share memory protocol feature

2019-07-08 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: LinLi Signed-off-by: XunNi Signed-off-by: YuZhang Signed-off-by: JinYu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed

[dpdk-dev] [PATCH] [v2, 1/2]vhost: support inflight share memory protocol feature

2019-07-08 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: LinLi Signed-off-by: XunNi Signed-off-by: YuZhang Signed-off-by: JinYu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed

[dpdk-dev] [PATCH] [v2, 1/2]vhost: support inflight share memory protocol feature

2019-07-08 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: LinLi Signed-off-by: XunNi Signed-off-by: YuZhang Signed-off-by: JinYu --- v1 - specify the APIs are split-ring only v2 - fix APIs and judge split or packed

[dpdk-dev] [PATCH] [v1]vhost: support inflight share memory protocol feature

2019-06-26 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: LinLi Signed-off-by: XunNi Signed-off-by: YuZhang Signed-off-by: JinYu --- V1 - specify the APIs are split-ring only --- lib/librte_vhost/rte_vhost.h

[dpdk-dev] [PATCH] vhost: support inflight share memory protocol feature

2019-06-25 Thread JinYu
VHOST_USER_SET_INFLIGHT_FD each time we start vhost-user. This shared buffer is used to process inflight I/O when backend reconnect. Signed-off-by: lilin Signed-off-by: Ni Xun Signed-off-by: Zhang Yu Signed-off-by: JinYu --- lib/librte_vhost/rte_vhost.h | 96 ++ lib/librte_vhost