Re: [Qemu-devel] [RFC v2 3/4] vhost-user: add slave-req-fd support

2017-04-19 Thread Maxime Coquelin
On 04/17/2017 05:29 AM, Peter Xu wrote: On Fri, Apr 14, 2017 at 07:40:55PM +0200, Maxime Coquelin wrote: [...] @@ -486,6 +500,18 @@ Message types If VHOST_USER_PROTOCOL_F_REPLY_ACK is negotiated, slave must respond with zero in case the specified MTU is valid, or non-zero oth

Re: [Qemu-devel] [RFC v2 3/4] vhost-user: add slave-req-fd support

2017-04-16 Thread Peter Xu
On Fri, Apr 14, 2017 at 07:40:55PM +0200, Maxime Coquelin wrote: [...] > @@ -486,6 +500,18 @@ Message types >If VHOST_USER_PROTOCOL_F_REPLY_ACK is negotiated, slave must respond >with zero in case the specified MTU is valid, or non-zero otherwise. > > + * VHOST_USER_SET_SLAVE_RE

[Qemu-devel] [RFC v2 3/4] vhost-user: add slave-req-fd support

2017-04-14 Thread Maxime Coquelin
From: Marc-André Lureau Learn to give a socket to the slave to let him make requests to the master. Signed-off-by: Marc-André Lureau Signed-off-by: Maxime Coquelin --- docs/specs/vhost-user.txt | 30 +++- hw/virtio/vhost-user.c| 117 ++