From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dstBX-0000kp-QN for qemu-devel@nongnu.org; Fri, 15 Sep 2017 12:09:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dstBT-0007Fv-O0 for qemu-devel@nongnu.org; Fri, 15 Sep 2017 12:09:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57838) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dstBT-0007FU-Gd for qemu-devel@nongnu.org; Fri, 15 Sep 2017 12:09:39 -0400 Date: Fri, 15 Sep 2017 17:09:28 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20170915160927.GT2170@work-vm> References: <1505375436-28439-1-git-send-email-peterx@redhat.com> <1505375436-28439-16-git-send-email-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1505375436-28439-16-git-send-email-peterx@redhat.com> Subject: Re: [Qemu-devel] [RFC 15/15] qmp: let migrate-incoming allow out-of-band List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: qemu-devel@nongnu.org, Paolo Bonzini , "Daniel P . Berrange" , Stefan Hajnoczi , Fam Zheng , Juan Quintela , mdroth@linux.vnet.ibm.com, Eric Blake , Laurent Vivier , =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , Markus Armbruster * Peter Xu (peterx@redhat.com) wrote: > So it can get rid of being run on main thread. > > Signed-off-by: Peter Xu > --- > qapi/migration.json | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/qapi/migration.json b/qapi/migration.json > index ee2b3b8..dedc4f8 100644 > --- a/qapi/migration.json > +++ b/qapi/migration.json > @@ -986,7 +986,8 @@ > # <- { "return": {} } > # > ## > -{ 'command': 'migrate-incoming', 'data': {'uri': 'str' } } > +{ 'command': 'migrate-incoming', 'data': {'uri': 'str' }, > + 'allow-oob': true } Are you completely convinced migrate-incoming is non-blocking? What about during the tls handshake if tls is enabled? (We only set non-blocking on the fd later) I don't understand in this structure on which thread process_incoming_migration_co gets run. Dave > ## > # @xen-save-devices-state: > -- > 2.7.4 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK