Re: [Qemu-devel] Re: [RFC][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-09 Thread Michael Roth
On 11/09/2010 04:45 AM, Amit Shah wrote: On (Fri) Nov 05 2010 [08:32:30], Adam Litke wrote: On Thu, 2010-11-04 at 08:57 -0500, Michael Roth wrote: This resembles vl.c's main_loop_wait() but I can see why you might want your own. There is opportunity for sharing the select logic and ioh callbac

Re: [Qemu-devel] Re: [RFC][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-09 Thread Amit Shah
On (Fri) Nov 05 2010 [08:32:30], Adam Litke wrote: > On Thu, 2010-11-04 at 08:57 -0500, Michael Roth wrote: > > > This resembles vl.c's main_loop_wait() but I can see why you might want > > > your own. There is opportunity for sharing the select logic and ioh > > > callbacks but I think that could

[Qemu-devel] Re: [RFC][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-05 Thread Adam Litke
On Thu, 2010-11-04 at 08:57 -0500, Michael Roth wrote: > > This resembles vl.c's main_loop_wait() but I can see why you might want > > your own. There is opportunity for sharing the select logic and ioh > > callbacks but I think that could be addressed later. > > > > Yup these are all basically c

[Qemu-devel] Re: [RFC][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-04 Thread Michael Roth
On 11/03/2010 05:47 PM, Adam Litke wrote: On Wed, 2010-11-03 at 10:27 -0500, Michael Roth wrote: +/* mirror qemu I/O-related code for standalone daemon */ +typedef struct IOHandlerRecord { +int fd; +IOCanReadHandler *fd_read_poll; +IOHandler *fd_read; +IOHandler *fd_write; +i

[Qemu-devel] Re: [RFC][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-03 Thread Adam Litke
On Wed, 2010-11-03 at 10:27 -0500, Michael Roth wrote: > +/* mirror qemu I/O-related code for standalone daemon */ > +typedef struct IOHandlerRecord { > +int fd; > +IOCanReadHandler *fd_read_poll; > +IOHandler *fd_read; > +IOHandler *fd_write; > +int deleted; > +void *opaque