Skip to content

vduse: Add support for reconnection

Cindy Lu lkml virtualization 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 13 repliesIn review
  2. v45 patches 12 repliesSuperseded
  3. v37 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/25 patches11 repliesSuperseded
v2 RFC posting 1/22 patches0 repliesSuperseded
v1 RFC2 patches0 repliesSuperseded

Changes in v5 from the cover letter

1. update the Documentation for vduse reconnection
2. merge the patch from Dan Carpenter <[email protected]> vduse: Fix off by one in vduse_dev_mmap()
3. fix the wrong comment in the code

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vduse: Add new ioctl VDUSE_DEV_GET_CONFIGdrivers/vdpa/vdpa_user/vduse_dev.c include/uapi/linux/vduse.h+24 -00 replies
2/5vduse: Add new ioctl VDUSE_DEV_GET_STATUSdrivers/vdpa/vdpa_user/vduse_dev.c include/uapi/linux/vduse.h+9 -00 replies
3/5vduse: Add function to get/free the pages for reconnectiondrivers/vdpa/vdpa_user/vduse_dev.c+40 -011 replies
4/5vduse: Add file operation for mmapdrivers/vdpa/vdpa_user/vduse_dev.c+57 -00 replies
5/5Documentation: Add reconnect process for VDUSEDocumentation/userspace-api/vduse.rst+41 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/5] vduse: Add support for reconnection

Here is the reconnect support in vduse

Kernel will allocate pages for reconnection.
Userspace needs to use mmap to map the memory to userspace and use these pages to save the reconnect information.

test passd in vduse+dpdk-testpmd

change in V2
1. Address the comments from v1
2. Add the document for reconnect process

change in V3
1. Move the vdpa_vq_state to the uAPI. vduse will use this to synchronize the vq info between the kernel and userspace app.
2. Add a new ioctl VDUSE_DEV_GET_CONFIG. userspace app use this to get config space
3. Rewrite the commit message.
4. Only save the address for the page address and remove the index.
5. remove the ioctl VDUSE_GET_RECONNECT_INFO, userspace app will use uAPI VDUSE_RECONNCT_MMAP_SIZE to mmap
6. Rewrite the document for the reconnect process to make it clearer.

change in v4
1. Change the number of map pages to VQ numbers. UserSpace APP can define and maintain the structure for saving reconnection information in userspace. The kernel will not maintain this information.
2. Rewrite the document for the reconnect process to make it clearer.
3. add the new ioctl for VDUSE_DEV_GET_CONFIG/VDUSE_DEV_GET_STATUS

change in V5
1. update the Documentation for vduse reconnection
2. merge the patch from Dan Carpenter <[email protected]> vduse: Fix off by one in vduse_dev_mmap()
3. fix the wrong comment in the code

Cindy Lu (5):
vduse: Add new ioctl VDUSE_DEV_GET_CONFIG
vduse: Add new ioctl VDUSE_DEV_GET_STATUS
vduse: Add function to get/free the pages for reconnection
vduse: Add file operation for mmap
Documentation: Add reconnect process for VDUSE

 Documentation/userspace-api/vduse.rst |  41 +++++++++
 drivers/vdpa/vdpa_user/vduse_dev.c    | 125 ++++++++++++++++++++++++++
 include/uapi/linux/vduse.h            |   5 ++
 3 files changed, 171 insertions(+)
Signature · 1 line
2.43.0