Re: [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-10-10 Thread Jag Raman
On 10/9/2019 1:58 PM, Elena Ufimtseva wrote: On Wed, Oct 09, 2019 at 02:37:24PM +0100, Stefan Hajnoczi wrote: On Thu, Sep 12, 2019 at 05:34:35PM +0200, Stefan Hajnoczi wrote: On Tue, Sep 03, 2019 at 04:37:33PM -0400, Jagannathan Raman wrote: +msg->num_fds = 0; +for (chdr =

Re: [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-10-09 Thread Elena Ufimtseva
On Wed, Oct 09, 2019 at 02:37:24PM +0100, Stefan Hajnoczi wrote: > On Thu, Sep 12, 2019 at 05:34:35PM +0200, Stefan Hajnoczi wrote: > > On Tue, Sep 03, 2019 at 04:37:33PM -0400, Jagannathan Raman wrote: > > > +msg->num_fds = 0; > > > +for (chdr = CMSG_FIRSTHDR(); chdr != NULL; > > > +

Re: [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-10-09 Thread Stefan Hajnoczi
On Thu, Sep 12, 2019 at 05:34:35PM +0200, Stefan Hajnoczi wrote: > On Tue, Sep 03, 2019 at 04:37:33PM -0400, Jagannathan Raman wrote: > > +msg->num_fds = 0; > > +for (chdr = CMSG_FIRSTHDR(); chdr != NULL; > > + chdr = CMSG_NXTHDR(, chdr)) { > > +if ((chdr->cmsg_level ==

Re: [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-09-12 Thread Stefan Hajnoczi
On Tue, Sep 03, 2019 at 04:37:33PM -0400, Jagannathan Raman wrote: > diff --git a/include/io/proxy-link.h b/include/io/proxy-link.h > new file mode 100644 > index 000..ee78cdd > --- /dev/null > +++ b/include/io/proxy-link.h > @@ -0,0 +1,147 @@ Regarding naming: so far I've seen "remote",

Re: [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-09-05 Thread Jag Raman
On 9/5/2019 10:37 AM, Eric Blake wrote: On 9/4/19 3:22 AM, Daniel P. Berrangé wrote: On Tue, Sep 03, 2019 at 04:37:33PM -0400, Jagannathan Raman wrote: Defines proxy-link object which forms the communication link between QEMU & emulation program. Adds functions to configure members of

Re: [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-09-05 Thread Eric Blake
On 9/4/19 3:22 AM, Daniel P. Berrangé wrote: > On Tue, Sep 03, 2019 at 04:37:33PM -0400, Jagannathan Raman wrote: >> Defines proxy-link object which forms the communication link between >> QEMU & emulation program. >> Adds functions to configure members of proxy-link object instance. >> Adds

Re: [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-09-04 Thread Daniel P . Berrangé
On Tue, Sep 03, 2019 at 04:37:33PM -0400, Jagannathan Raman wrote: > Defines proxy-link object which forms the communication link between > QEMU & emulation program. > Adds functions to configure members of proxy-link object instance. > Adds functions to send and receive messages over the

[Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object

2019-09-03 Thread Jagannathan Raman
Defines proxy-link object which forms the communication link between QEMU & emulation program. Adds functions to configure members of proxy-link object instance. Adds functions to send and receive messages over the communication channel. Adds GMainLoop to handle events received on the