Re: [Xen-devel] [PATCH v4 14/32] libxl_qmp: Implement fd callback and read data

2018-08-06 Thread Anthony PERARD
On Fri, Aug 03, 2018 at 05:24:52PM +0200, Roger Pau Monné wrote: > On Fri, Aug 03, 2018 at 03:32:09PM +0100, Anthony PERARD wrote: > > On Thu, Aug 02, 2018 at 11:56:11AM +0200, Roger Pau Monné wrote: > > > On Fri, Jul 27, 2018 at 03:05:56PM +0100, Anthony PERARD wrote: > > > > +/* The -1

Re: [Xen-devel] [PATCH v4 14/32] libxl_qmp: Implement fd callback and read data

2018-08-03 Thread Roger Pau Monné
On Fri, Aug 03, 2018 at 03:32:09PM +0100, Anthony PERARD wrote: > On Thu, Aug 02, 2018 at 11:56:11AM +0200, Roger Pau Monné wrote: > > On Fri, Jul 27, 2018 at 03:05:56PM +0100, Anthony PERARD wrote: > > > +/* The -1 is because there is always space for a NUL character */ > > > +r =

Re: [Xen-devel] [PATCH v4 14/32] libxl_qmp: Implement fd callback and read data

2018-08-03 Thread Anthony PERARD
On Thu, Aug 02, 2018 at 11:56:11AM +0200, Roger Pau Monné wrote: > On Fri, Jul 27, 2018 at 03:05:56PM +0100, Anthony PERARD wrote: > > +/* The -1 is because there is always space for a NUL character */ > > +r = read(fd, ev->rx_buf + ev->buf_used, > > + ev->buf_size

Re: [Xen-devel] [PATCH v4 14/32] libxl_qmp: Implement fd callback and read data

2018-08-02 Thread Roger Pau Monné
On Fri, Jul 27, 2018 at 03:05:56PM +0100, Anthony PERARD wrote: > First step into taking care of the input from QEMU's QMP socket. For > now, we read data and store them in a buffer. > > Parsing of the data will be done in the following patches. > > Signed-off-by: Anthony PERARD > --- > >

[Xen-devel] [PATCH v4 14/32] libxl_qmp: Implement fd callback and read data

2018-07-27 Thread Anthony PERARD
First step into taking care of the input from QEMU's QMP socket. For now, we read data and store them in a buffer. Parsing of the data will be done in the following patches. Signed-off-by: Anthony PERARD --- Notes: v4: remove use of a linked list of receive buffer, and use realloc