Re: [Xen-devel] [PATCH v4 11/13] xen/pvcalls: implement poll command

2017-10-06 Thread Stefano Stabellini
On Fri, 22 Sep 2017, Boris Ostrovsky wrote: > > +static unsigned int pvcalls_front_poll_passive(struct file *file, > > + struct pvcalls_bedata *bedata, > > + struct sock_mapping *map, > > +

Re: [Xen-devel] [PATCH v4 11/13] xen/pvcalls: implement poll command

2017-10-06 Thread Stefano Stabellini
On Tue, 19 Sep 2017, Andrea Parri wrote: > Hi Stefano, > > On Fri, Sep 15, 2017 at 04:00:38PM -0700, Stefano Stabellini wrote: > > For active sockets, check the indexes and use the inflight_conn_req > > waitqueue to wait. > > > > For passive sockets if an accept is outstanding > >

Re: [Xen-devel] [PATCH v4 11/13] xen/pvcalls: implement poll command

2017-09-22 Thread Boris Ostrovsky
> > +static unsigned int pvcalls_front_poll_passive(struct file *file, > +struct pvcalls_bedata *bedata, > +struct sock_mapping *map, > +poll_table *wait) > +{ > +

Re: [Xen-devel] [PATCH v4 11/13] xen/pvcalls: implement poll command

2017-09-19 Thread Andrea Parri
Hi Stefano, On Fri, Sep 15, 2017 at 04:00:38PM -0700, Stefano Stabellini wrote: > For active sockets, check the indexes and use the inflight_conn_req > waitqueue to wait. > > For passive sockets if an accept is outstanding > (PVCALLS_FLAG_ACCEPT_INFLIGHT), check if it has been answered by