Received: from eggs.gnu.org ([2001:4830:134:3::10]:50601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euqB7-0002PM-CL for qemu-devel@nongnu.org; Sat, 10 Mar 2018 20:53:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euqB2-00047M-PL for qemu-devel@nongnu.org; Sat, 10 Mar 2018 20:53:37 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33214 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euqB2-000470-Jw for qemu-devel@nongnu.org; Sat, 10 Mar 2018 20:53:32 -0500 References: <20180309090006.10018-1-peterx@redhat.com> <20180309090006.10018-14-peterx@redhat.com> From: Eric Blake Message-ID: Date: Sat, 10 Mar 2018 19:53:21 -0600 MIME-Version: 1.0 In-Reply-To: <20180309090006.10018-14-peterx@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8 13/23] monitor: let suspend/resume work even with QMPs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu , qemu-devel@nongnu.org Cc: Stefan Hajnoczi , "Daniel P . Berrange" , Paolo Bonzini , Fam Zheng , Juan Quintela , mdroth@linux.vnet.ibm.com, Laurent Vivier , Markus Armbruster , marcandre.lureau@redhat.com, "Dr . David Alan Gilbert" On 03/09/2018 02:59 AM, Peter Xu wrote: > This patches allows QMP monitors to be suspended/resumed. > > One thing to mention is that for QMPs that are using IOThreads, we need > an explicit kick for the IOThread in case it is sleeping. > > Meanwhile, we need to take special care on non-interactive HMPs. > Currently only gdbserver is using that. For these monitors, we still > don't allow suspend/resume operations. > > Since at it, add traces for the operations. > > Signed-off-by: Peter Xu > --- > monitor.c | 47 ++++++++++++++++++++++++++++++++++++++++++++--- > trace-events | 1 + > 2 files changed, 45 insertions(+), 3 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org