Re: [Qemu-devel] [RFC v5 10/26] monitor: allow to use IO thread for parsing

2017-12-15 Thread Peter Xu
On Wed, Dec 13, 2017 at 04:35:00PM +, Stefan Hajnoczi wrote: > On Tue, Dec 05, 2017 at 01:51:44PM +0800, Peter Xu wrote: > > @@ -583,6 +585,7 @@ static void monitor_data_init(Monitor *mon, bool > > skip_flush) > > /* Use *mon_cmds by default. */ > > mon->cmd_table = mon_cmds; > >

Re: [Qemu-devel] [RFC v5 10/26] monitor: allow to use IO thread for parsing

2017-12-13 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:51:44PM +0800, Peter Xu wrote: > @@ -583,6 +585,7 @@ static void monitor_data_init(Monitor *mon, bool > skip_flush) > /* Use *mon_cmds by default. */ > mon->cmd_table = mon_cmds; > mon->skip_flush = skip_flush; > +mon->use_io_thr = use_io_thr; Why is

[Qemu-devel] [RFC v5 10/26] monitor: allow to use IO thread for parsing

2017-12-04 Thread Peter Xu
For each Monitor, add one field "use_io_thr" to show whether it will be using the dedicated monitor IO thread to handle input/output. When set, monitor IO parsing work will be offloaded to dedicated monitor IO thread, rather than the original main loop thread. This only works for QMP. HMP will a