[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJaqyWeNhEFK9Fh53sTNUENQqZJbeX1oiFc4AaSPDXtE0hNYFA@mail.gmail.com>
Date: Mon, 1 Sep 2025 09:27:03 +0200
From: Eugenio Perez Martin <eperezma@...hat.com>
To: Jason Wang <jasowang@...hat.com>
Cc: "Michael S . Tsirkin" <mst@...hat.com>, Cindy Lu <lulu@...hat.com>,
Stefano Garzarella <sgarzare@...hat.com>, Xuan Zhuo <xuanzhuo@...ux.alibaba.com>,
Laurent Vivier <lvivier@...hat.com>, virtualization@...ts.linux.dev,
linux-kernel@...r.kernel.org, Yongji Xie <xieyongji@...edance.com>,
Maxime Coquelin <mcoqueli@...hat.com>
Subject: Re: [PATCH 3/6] vduse: return internal vq group struct as map token
On Mon, Sep 1, 2025 at 4:26 AM Jason Wang <jasowang@...hat.com> wrote:
>
> On Tue, Aug 26, 2025 at 7:27 PM Eugenio Pérez <eperezma@...hat.com> wrote:
> >
> > Return the internal struct that represents the vq group as virtqueue map
> > token, instead of the device. This allows the map functions to access
> > the information per group.
> >
> > At this moment all the virtqueues share the same vq group, that only
> > can point to ASID 0. This change prepares the infrastructure for actual
> > per-group address space handling
> >
> > Signed-off-by: Eugenio Pérez <eperezma@...hat.com>
> > ---
> > v3:
> > * Make the vq groups a dynamic array to support an arbitrary number of
> > them.
> > ---
> > drivers/vdpa/vdpa_user/vduse_dev.c | 52 ++++++++++++++++++++++++------
> > include/linux/virtio.h | 6 ++--
> > 2 files changed, 46 insertions(+), 12 deletions(-)
> >
> > diff --git a/drivers/vdpa/vdpa_user/vduse_dev.c b/drivers/vdpa/vdpa_user/vduse_dev.c
> > index 0f4e36dd167e..cdb3dc2b5e3f 100644
> > --- a/drivers/vdpa/vdpa_user/vduse_dev.c
> > +++ b/drivers/vdpa/vdpa_user/vduse_dev.c
> > @@ -22,6 +22,7 @@
> > #include <linux/uio.h>
> > #include <linux/vdpa.h>
> > #include <linux/nospec.h>
> > +#include <linux/virtio.h>
> > #include <linux/vmalloc.h>
> > #include <linux/sched/mm.h>
> > #include <uapi/linux/vduse.h>
> > @@ -84,6 +85,10 @@ struct vduse_umem {
> > struct mm_struct *mm;
> > };
> >
> > +struct vduse_vq_group_int {
> > + struct vduse_dev *dev;
> > +};
>
> Nit: I don't get the meaning of the "int" suffix.
>
It means "internal", but I don't think it is a great name so I'm ok
with changing it.
Powered by blists - more mailing lists