Re: [Xen-devel] [PATCH v1 03/13] xen/pvcalls: implement socket command and handle events

2017-07-25 Thread Stefano Stabellini
On Mon, 24 Jul 2017, Juergen Gross wrote: > On 22/07/17 02:11, Stefano Stabellini wrote: > > Send a PVCALLS_SOCKET command to the backend, use the masked > > req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 > > and PVCALLS_NR_REQ_PER_RING. We already have a slot in the rsp

Re: [Xen-devel] [PATCH v1 03/13] xen/pvcalls: implement socket command and handle events

2017-07-24 Thread Juergen Gross
On 22/07/17 02:11, Stefano Stabellini wrote: > Send a PVCALLS_SOCKET command to the backend, use the masked > req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 > and PVCALLS_NR_REQ_PER_RING. We already have a slot in the rsp array > ready for the response, and there cannot be

[Xen-devel] [PATCH v1 03/13] xen/pvcalls: implement socket command and handle events

2017-07-21 Thread Stefano Stabellini
Send a PVCALLS_SOCKET command to the backend, use the masked req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 and PVCALLS_NR_REQ_PER_RING. We already have a slot in the rsp array ready for the response, and there cannot be two outstanding responses with the same req_id. Wait