[Virtio-fs] [PATCH 5/8] virtiofs: Add a virtqueue for notifications
Vivek Goyal
vgoyal at redhat.com
Wed Oct 6 12:54:56 UTC 2021
On Wed, Oct 06, 2021 at 02:46:46PM +0200, Miklos Szeredi wrote:
> On Thu, 30 Sept 2021 at 16:39, Vivek Goyal <vgoyal at redhat.com> wrote:
>
> > @@ -34,10 +35,12 @@ static LIST_HEAD(virtio_fs_instances);
> >
> > enum {
> > VQ_TYPE_HIPRIO,
> > - VQ_TYPE_REQUEST
> > + VQ_TYPE_REQUEST,
> > + VQ_TYPE_NOTIFY
> > };
> >
> > #define VQ_NAME_LEN 24
> > +#define VQ_NOTIFY_ELEMS 16 /* Number of notification elements */
>
> Where does this number come from?
I just chose an arbitrary number. Not sure what's a good number and
how to decide that. Good thing is that its not part of the protocol
so guest should be able to change it if need be.
Stefan, do you have any thoughts on this depending on what other
virtio drivers have done w.r.t this.
Thanks
Vivek
More information about the Virtio-fs
mailing list