From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC62q-0001ml-C8 for qemu-devel@nongnu.org; Wed, 21 Aug 2013 06:53:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC62j-0000Ln-QG for qemu-devel@nongnu.org; Wed, 21 Aug 2013 06:53:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC62j-0000LP-JL for qemu-devel@nongnu.org; Wed, 21 Aug 2013 06:53:37 -0400 Message-ID: <52149BFF.6060607@redhat.com> Date: Wed, 21 Aug 2013 12:52:47 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1377069536-12658-1-git-send-email-lilei@linux.vnet.ibm.com> <1377069536-12658-19-git-send-email-lilei@linux.vnet.ibm.com> In-Reply-To: <1377069536-12658-19-git-send-email-lilei@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 17/18] migration: add prefix for local migration to incoming migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lei Li Cc: aarcange@redhat.com, aliguori@us.ibm.com, quintela@redhat.com, qemu-devel@nongnu.org, mrhines@linux.vnet.ibm.com, lagarcia@br.ibm.com, rcj@linux.vnet.ibm.com Il 21/08/2013 09:18, Lei Li ha scritto: > Signed-off-by: Lei Li > --- > migration.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/migration.c b/migration.c > index 2471664..17cf2fd 100644 > --- a/migration.c > +++ b/migration.c > @@ -81,6 +81,9 @@ void qemu_start_incoming_migration(const char *uri, Error **errp) > unix_start_incoming_migration(p, errp); > else if (strstart(uri, "fd:", &p)) > fd_start_incoming_migration(p, errp); > + else if (strstart(uri, "local:", &p)) > + local_start_incoming_migration(p, errp); > + > #endif > else { > error_setg(errp, "unknown migration protocol: %s", uri); > This should not be needed. The destination can just use the normal unix: protocol. The load hook will only be called if the source uses localhost migration, and it will get the pipe via SCM_RIGHTS then process the pipe. Paolo