Re: [Qemu-devel] [RFC v3 10/27] monitor: create monitor dedicate iothread

2017-11-08 Thread Peter Xu
On Wed, Nov 08, 2017 at 07:18:44PM +0800, Fam Zheng wrote: > On Wed, 11/08 15:25, Peter Xu wrote: > > On Tue, Nov 07, 2017 at 03:11:31PM +0800, Fam Zheng wrote: > > > On Mon, 11/06 17:46, Peter Xu wrote: > > > > +static GMainContext *monitor_io_context_get(void) > > > > +{ > > > > +return iothr

Re: [Qemu-devel] [RFC v3 10/27] monitor: create monitor dedicate iothread

2017-11-08 Thread Fam Zheng
On Wed, 11/08 15:25, Peter Xu wrote: > On Tue, Nov 07, 2017 at 03:11:31PM +0800, Fam Zheng wrote: > > On Mon, 11/06 17:46, Peter Xu wrote: > > > +static GMainContext *monitor_io_context_get(void) > > > +{ > > > +return iothread_get_g_main_context(mon_global.mon_iothread); > > > +} > > > + > > >

Re: [Qemu-devel] [RFC v3 10/27] monitor: create monitor dedicate iothread

2017-11-07 Thread Peter Xu
On Tue, Nov 07, 2017 at 03:11:31PM +0800, Fam Zheng wrote: > On Mon, 11/06 17:46, Peter Xu wrote: > > +static GMainContext *monitor_io_context_get(void) > > +{ > > +return iothread_get_g_main_context(mon_global.mon_iothread); > > +} > > + > > +static void monitor_iothread_init(void) > > +{ > >

Re: [Qemu-devel] [RFC v3 10/27] monitor: create monitor dedicate iothread

2017-11-06 Thread Fam Zheng
On Mon, 11/06 17:46, Peter Xu wrote: > +static GMainContext *monitor_io_context_get(void) > +{ > +return iothread_get_g_main_context(mon_global.mon_iothread); > +} > + > +static void monitor_iothread_init(void) > +{ > +mon_global.mon_iothread = iothread_create("monitor_iothread", > +

[Qemu-devel] [RFC v3 10/27] monitor: create monitor dedicate iothread

2017-11-06 Thread Peter Xu
Create one IOThread for the monitors, prepared to handle all the input/output IOs using existing iothread framework. Signed-off-by: Peter Xu --- monitor.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/monitor.c b/monitor.c index a70ab5606b..df1ec8d037 10