Re: [Xen-devel] [PATCH v3 13/18] xen/pvcalls: implement release command

2017-06-13 Thread Stefano Stabellini
On Tue, 13 Jun 2017, Juergen Gross wrote: > On 02/06/17 21:31, Stefano Stabellini wrote: > > Release both active and passive sockets. For active sockets, make sure > > to avoid possible conflicts with the ioworker reading/writing to those > > sockets concurrently. Set map->release to let the

Re: [Xen-devel] [PATCH v3 13/18] xen/pvcalls: implement release command

2017-06-13 Thread Juergen Gross
On 02/06/17 21:31, Stefano Stabellini wrote: > Release both active and passive sockets. For active sockets, make sure > to avoid possible conflicts with the ioworker reading/writing to those > sockets concurrently. Set map->release to let the ioworker know > atomically that the socket will be

[Xen-devel] [PATCH v3 13/18] xen/pvcalls: implement release command

2017-06-02 Thread Stefano Stabellini
Release both active and passive sockets. For active sockets, make sure to avoid possible conflicts with the ioworker reading/writing to those sockets concurrently. Set map->release to let the ioworker know atomically that the socket will be released soon, then wait until the ioworker finishes