From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCABd-0004m8-Qr for qemu-devel@nongnu.org; Wed, 21 Aug 2013 11:19:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCABU-0002Q4-QP for qemu-devel@nongnu.org; Wed, 21 Aug 2013 11:19:05 -0400 Received: from mail-qc0-x233.google.com ([2607:f8b0:400d:c01::233]:49851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCABU-0002Q0-Md for qemu-devel@nongnu.org; Wed, 21 Aug 2013 11:18:56 -0400 Received: by mail-qc0-f179.google.com with SMTP id n10so297476qcx.38 for ; Wed, 21 Aug 2013 08:18:56 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5214DA32.1060403@redhat.com> Date: Wed, 21 Aug 2013 17:18:10 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1377069536-12658-1-git-send-email-lilei@linux.vnet.ibm.com> <1377069536-12658-12-git-send-email-lilei@linux.vnet.ibm.com> In-Reply-To: <1377069536-12658-12-git-send-email-lilei@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 11/18] migration: introduce capability localhost 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: > } else if (strstart(uri, "unix:", &p)) { > + if (s->enabled_capabilities[MIGRATION_CAPABILITY_LOCALHOST]) { > + local_start_outgoing_migration(s, p, &local_err); > + } > unix_start_outgoing_migration(s, p, &local_err); > } else if (strstart(uri, "fd:", &p)) { > fd_start_outgoing_migration(s, p, &local_err); > @@ -521,6 +524,15 @@ int migrate_use_xbzrle(void) > return s->enabled_capabilities[MIGRATION_CAPABILITY_XBZRLE]; > } > > +bool migrate_is_localhost(void) > +{ > + MigrationState *s; > + > + s = migrate_get_current(); > + > + return s->enabled_capabilities[MIGRATION_CAPABILITY_LOCALHOST]; > +} I think this is a bad name, too. There is nothing more "local" in this migration than in "unix:" migration. Let's call the capability according to what it does, for example unix-page-flipping. Paolo