Re: [Qemu-devel] [RFC v5 09/26] monitor: create monitor dedicate iothread

2017-12-15 Thread Peter Xu
On Sat, Dec 16, 2017 at 12:42:00PM +0800, Peter Xu wrote: > On Fri, Dec 15, 2017 at 01:21:42PM +, Stefan Hajnoczi wrote: > > On Fri, Dec 15, 2017 at 04:31:08PM +0800, Peter Xu wrote: > > > On Wed, Dec 13, 2017 at 04:20:22PM +, Stefan Hajnoczi wrote: > > > > On Tue, Dec 05, 2017 at 01:51:43P

Re: [Qemu-devel] [RFC v5 09/26] monitor: create monitor dedicate iothread

2017-12-15 Thread Peter Xu
On Fri, Dec 15, 2017 at 01:21:42PM +, Stefan Hajnoczi wrote: > On Fri, Dec 15, 2017 at 04:31:08PM +0800, Peter Xu wrote: > > On Wed, Dec 13, 2017 at 04:20:22PM +, Stefan Hajnoczi wrote: > > > On Tue, Dec 05, 2017 at 01:51:43PM +0800, Peter Xu wrote: > > > > @@ -208,6 +209,12 @@ struct Monit

Re: [Qemu-devel] [RFC v5 09/26] monitor: create monitor dedicate iothread

2017-12-15 Thread Stefan Hajnoczi
On Fri, Dec 15, 2017 at 04:31:08PM +0800, Peter Xu wrote: > On Wed, Dec 13, 2017 at 04:20:22PM +, Stefan Hajnoczi wrote: > > On Tue, Dec 05, 2017 at 01:51:43PM +0800, Peter Xu wrote: > > > @@ -208,6 +209,12 @@ struct Monitor { > > > QTAILQ_ENTRY(Monitor) entry; > > > }; > > > > > > +str

Re: [Qemu-devel] [RFC v5 09/26] monitor: create monitor dedicate iothread

2017-12-15 Thread Peter Xu
On Wed, Dec 13, 2017 at 04:20:22PM +, Stefan Hajnoczi wrote: > On Tue, Dec 05, 2017 at 01:51:43PM +0800, Peter Xu wrote: > > @@ -208,6 +209,12 @@ struct Monitor { > > QTAILQ_ENTRY(Monitor) entry; > > }; > > > > +struct MonitorGlobal { > > +IOThread *mon_iothread; > > +}; > > + > > +

Re: [Qemu-devel] [RFC v5 09/26] monitor: create monitor dedicate iothread

2017-12-13 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:51:43PM +0800, Peter Xu wrote: > @@ -208,6 +209,12 @@ struct Monitor { > QTAILQ_ENTRY(Monitor) entry; > }; > > +struct MonitorGlobal { > +IOThread *mon_iothread; > +}; > + > +static struct MonitorGlobal mon_global; structs can be anonymous. That avoids the Q

[Qemu-devel] [RFC v5 09/26] monitor: create monitor dedicate iothread

2017-12-04 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 | 32 1 file changed, 32 insertions(+) diff --git a/monitor.c b/monitor.c index a70ab5606b..6b60f6d91b 1006