[v1,0/4] vduse: Reconnection support in vduse

Message ID 20231011064208.2143245-1-lulu@redhat.com
Headers
Series vduse: Reconnection support in vduse |

Message

Cindy Lu Oct. 11, 2023, 6:42 a.m. UTC
  Here is the reconnect support in vduse, 

The kernel will allocate pages for reconnection
userspace needs to use ioctl VDUSE_GET_RECONNECT_INFO to 
get the mmap related infomation and then map these pages
to userspace. 
The kernel and userspace will use these pages to sync
the reconnect information

Tested in vduse + dpdk test-pmd

Cindy Lu (4):
  vduse: Add function to get/free the pages for reconnection
  vduse: Add file operation for mmap
  vduse: Add new ioctl VDUSE_GET_RECONNECT_INFO
  vduse: update the vq_info in ioctl

 drivers/vdpa/vdpa_user/vduse_dev.c | 175 +++++++++++++++++++++++++++++
 include/uapi/linux/vduse.h         |  43 +++++++
 2 files changed, 218 insertions(+)
  

Comments

Jason Wang Oct. 17, 2023, 2:44 a.m. UTC | #1
On Wed, Oct 11, 2023 at 2:42 PM Cindy Lu <lulu@redhat.com> wrote:
>
> Here is the reconnect support in vduse,
>
> The kernel will allocate pages for reconnection
> userspace needs to use ioctl VDUSE_GET_RECONNECT_INFO to
> get the mmap related infomation and then map these pages
> to userspace.
> The kernel and userspace will use these pages to sync
> the reconnect information
>
> Tested in vduse + dpdk test-pmd

I would like to see the DPDK part as a reference. Would you mind
giving me a pointer?

Thanks

>
> Cindy Lu (4):
>   vduse: Add function to get/free the pages for reconnection
>   vduse: Add file operation for mmap
>   vduse: Add new ioctl VDUSE_GET_RECONNECT_INFO
>   vduse: update the vq_info in ioctl
>
>  drivers/vdpa/vdpa_user/vduse_dev.c | 175 +++++++++++++++++++++++++++++
>  include/uapi/linux/vduse.h         |  43 +++++++
>  2 files changed, 218 insertions(+)
>
> --
> 2.34.3
>
  
Cindy Lu Oct. 17, 2023, 2:51 a.m. UTC | #2
On Tue, Oct 17, 2023 at 10:44 AM Jason Wang <jasowang@redhat.com> wrote:
>
> On Wed, Oct 11, 2023 at 2:42 PM Cindy Lu <lulu@redhat.com> wrote:
> >
> > Here is the reconnect support in vduse,
> >
> > The kernel will allocate pages for reconnection
> > userspace needs to use ioctl VDUSE_GET_RECONNECT_INFO to
> > get the mmap related infomation and then map these pages
> > to userspace.
> > The kernel and userspace will use these pages to sync
> > the reconnect information
> >
> > Tested in vduse + dpdk test-pmd
>
> I would like to see the DPDK part as a reference. Would you mind
> giving me a pointer?
>
> Thanks
>
sure, Will send the dpdk patch soon
thanks
cindy
> >
> > Cindy Lu (4):
> >   vduse: Add function to get/free the pages for reconnection
> >   vduse: Add file operation for mmap
> >   vduse: Add new ioctl VDUSE_GET_RECONNECT_INFO
> >   vduse: update the vq_info in ioctl
> >
> >  drivers/vdpa/vdpa_user/vduse_dev.c | 175 +++++++++++++++++++++++++++++
> >  include/uapi/linux/vduse.h         |  43 +++++++
> >  2 files changed, 218 insertions(+)
> >
> > --
> > 2.34.3
> >
>
  
Jason Wang Oct. 18, 2023, 5:09 a.m. UTC | #3
On Tue, Oct 17, 2023 at 10:52 AM Cindy Lu <lulu@redhat.com> wrote:
>
> On Tue, Oct 17, 2023 at 10:44 AM Jason Wang <jasowang@redhat.com> wrote:
> >
> > On Wed, Oct 11, 2023 at 2:42 PM Cindy Lu <lulu@redhat.com> wrote:
> > >
> > > Here is the reconnect support in vduse,
> > >
> > > The kernel will allocate pages for reconnection
> > > userspace needs to use ioctl VDUSE_GET_RECONNECT_INFO to
> > > get the mmap related infomation and then map these pages
> > > to userspace.
> > > The kernel and userspace will use these pages to sync
> > > the reconnect information
> > >
> > > Tested in vduse + dpdk test-pmd
> >
> > I would like to see the DPDK part as a reference. Would you mind
> > giving me a pointer?
> >
> > Thanks
> >
> sure, Will send the dpdk patch soon
> thanks
> cindy

Btw, I would expect to add the protocol into the VDUSE doc to describe
the exact step for doing reconnection.

Thanks

> > >
> > > Cindy Lu (4):
> > >   vduse: Add function to get/free the pages for reconnection
> > >   vduse: Add file operation for mmap
> > >   vduse: Add new ioctl VDUSE_GET_RECONNECT_INFO
> > >   vduse: update the vq_info in ioctl
> > >
> > >  drivers/vdpa/vdpa_user/vduse_dev.c | 175 +++++++++++++++++++++++++++++
> > >  include/uapi/linux/vduse.h         |  43 +++++++
> > >  2 files changed, 218 insertions(+)
> > >
> > > --
> > > 2.34.3
> > >
> >
>