Re: [Xen-devel] [PATCH v5 08/13] xen/pvcalls: implement accept command

2017-10-24 Thread Stefano Stabellini
On Tue, 24 Oct 2017, Boris Ostrovsky wrote: > On 10/23/2017 07:03 PM, Stefano Stabellini wrote: > > On Tue, 17 Oct 2017, Boris Ostrovsky wrote: > >> On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > >>> + /* > >>> + * Backend only supports 1 inflight accept request, will return > >>> + * errors

Re: [Xen-devel] [PATCH v5 08/13] xen/pvcalls: implement accept command

2017-10-24 Thread Boris Ostrovsky
On 10/23/2017 07:03 PM, Stefano Stabellini wrote: > On Tue, 17 Oct 2017, Boris Ostrovsky wrote: >> On 10/06/2017 08:30 PM, Stefano Stabellini wrote: >>> + /* >>> +* Backend only supports 1 inflight accept request, will return >>> +* errors for the others >>> +*/ >>> + if (test_and_s

Re: [Xen-devel] [PATCH v5 08/13] xen/pvcalls: implement accept command

2017-10-23 Thread Stefano Stabellini
On Tue, 17 Oct 2017, Boris Ostrovsky wrote: > On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > > Introduce a waitqueue to allow only one outstanding accept command at > > any given time and to implement polling on the passive socket. Introduce > > a flags field to keep track of in-flight accept

Re: [Xen-devel] [PATCH v5 08/13] xen/pvcalls: implement accept command

2017-10-17 Thread Boris Ostrovsky
On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > Introduce a waitqueue to allow only one outstanding accept command at > any given time and to implement polling on the passive socket. Introduce > a flags field to keep track of in-flight accept and poll commands. > > Send PVCALLS_ACCEPT to the b

[Xen-devel] [PATCH v5 08/13] xen/pvcalls: implement accept command

2017-10-06 Thread Stefano Stabellini
Introduce a waitqueue to allow only one outstanding accept command at any given time and to implement polling on the passive socket. Introduce a flags field to keep track of in-flight accept and poll commands. Send PVCALLS_ACCEPT to the backend. Allocate a new active socket. Make sure that only on