From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIBkI-0002gK-5v for qemu-devel@nongnu.org; Fri, 24 Nov 2017 06:02:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIBkD-00017t-Jq for qemu-devel@nongnu.org; Fri, 24 Nov 2017 06:02:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35130) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eIBkD-00013m-DA for qemu-devel@nongnu.org; Fri, 24 Nov 2017 06:02:05 -0500 Date: Fri, 24 Nov 2017 11:01:49 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20171124110149.GC2302@work-vm> References: <20171116130610.23582-1-peterx@redhat.com> <20171116130610.23582-24-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171116130610.23582-24-peterx@redhat.com> Subject: Re: [Qemu-devel] [RFC v4 23/27] monitor: enable IO thread for (qmp & !mux) typed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , "Daniel P . Berrange" , Paolo Bonzini , Fam Zheng , Juan Quintela , mdroth@linux.vnet.ibm.com, Eric Blake , Laurent Vivier , Markus Armbruster , marcandre.lureau@redhat.com * Peter Xu (peterx@redhat.com) wrote: > Start to use dedicate IO thread for QMP monitors that are not using > MUXed chardev. > > Signed-off-by: Peter Xu Reviewed-by: Dr. David Alan Gilbert I guess another way to do this would be to have a property on the Chardev something like 'can use iothread' and clear that for Mux. Dave > --- > monitor.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/monitor.c b/monitor.c > index b18d9d696c..5e0b8ed9c5 100644 > --- a/monitor.c > +++ b/monitor.c > @@ -36,6 +36,7 @@ > #include "net/net.h" > #include "net/slirp.h" > #include "chardev/char-fe.h" > +#include "chardev/char-mux.h" > #include "ui/qemu-spice.h" > #include "sysemu/numa.h" > #include "monitor/monitor.h" > @@ -4456,7 +4457,7 @@ void monitor_init(Chardev *chr, int flags) > Monitor *mon = g_malloc(sizeof(*mon)); > GMainContext *context; > > - monitor_data_init(mon, false, false); > + monitor_data_init(mon, false, !CHARDEV_IS_MUX(chr)); > > qemu_chr_fe_init(&mon->chr, chr, &error_abort); > mon->flags = flags; > -- > 2.13.6 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK