Re: [PATCH 2/4] virtiofd: Create a notification queue

2019-11-22 Thread Dr. David Alan Gilbert
* Vivek Goyal (vgo...@redhat.com) wrote: > On Fri, Nov 22, 2019 at 10:19:03AM +, Stefan Hajnoczi wrote: > > On Fri, Nov 15, 2019 at 03:55:41PM -0500, Vivek Goyal wrote: > > > /* Callback from libvhost-user */ > > > static void fv_set_features(VuDev *dev, uint64_t features) > > > { > > > +

Re: [PATCH 2/4] virtiofd: Create a notification queue

2019-11-22 Thread Vivek Goyal
On Fri, Nov 22, 2019 at 10:19:03AM +, Stefan Hajnoczi wrote: > On Fri, Nov 15, 2019 at 03:55:41PM -0500, Vivek Goyal wrote: > > /* Callback from libvhost-user */ > > static void fv_set_features(VuDev *dev, uint64_t features) > > { > > +struct fv_VuDev *vud = container_of(dev, struct fv_V

Re: [PATCH 2/4] virtiofd: Create a notification queue

2019-11-22 Thread Stefan Hajnoczi
On Fri, Nov 15, 2019 at 03:55:41PM -0500, Vivek Goyal wrote: > /* Callback from libvhost-user */ > static void fv_set_features(VuDev *dev, uint64_t features) > { > +struct fv_VuDev *vud = container_of(dev, struct fv_VuDev, dev); > +struct fuse_session *se = vud->se; > + > +if ((1 <<

[PATCH 2/4] virtiofd: Create a notification queue

2019-11-15 Thread Vivek Goyal
Add a notification queue which will be used to send async notifications for file lock availability. Signed-off-by: Vivek Goyal --- contrib/virtiofsd/fuse_i.h | 1 + contrib/virtiofsd/fuse_virtio.c| 108 ++--- hw/virtio/vhost-user-fs-pci.c