From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxvwN-0004lF-11 for qemu-devel@nongnu.org; Sat, 13 Jul 2013 05:16:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxvwL-0000ie-0z for qemu-devel@nongnu.org; Sat, 13 Jul 2013 05:16:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxvwK-0000iW-N4 for qemu-devel@nongnu.org; Sat, 13 Jul 2013 05:16:28 -0400 Message-ID: <51E11B36.7060606@redhat.com> Date: Sat, 13 Jul 2013 12:17:42 +0300 From: Orit Wasserman MIME-Version: 1.0 References: <1372067382-141082-1-git-send-email-chegu_vinod@hp.com> <1372067382-141082-3-git-send-email-chegu_vinod@hp.com> In-Reply-To: <1372067382-141082-3-git-send-email-chegu_vinod@hp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8 2/3] Add 'auto-converge' migration capability List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chegu Vinod Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, quintela@redhat.com On 06/24/2013 12:49 PM, Chegu Vinod wrote: > The auto-converge migration capability allows the user to specify if they > choose live migration seqeunce to automatically detect and force convergence. > > Signed-off-by: Chegu Vinod > Reviewed-by: Paolo Bonzini > Reviewed-by: Eric Blake > --- > include/migration/migration.h | 2 ++ > migration.c | 9 +++++++++ > qapi-schema.json | 5 ++++- > 3 files changed, 15 insertions(+), 1 deletions(-) > > diff --git a/include/migration/migration.h b/include/migration/migration.h > index e2acec6..ace91b0 100644 > --- a/include/migration/migration.h > +++ b/include/migration/migration.h > @@ -127,4 +127,6 @@ int migrate_use_xbzrle(void); > int64_t migrate_xbzrle_cache_size(void); > > int64_t xbzrle_cache_resize(int64_t new_size); > + > +bool migrate_auto_converge(void); > #endif > diff --git a/migration.c b/migration.c > index 058f9e6..d0759c1 100644 > --- a/migration.c > +++ b/migration.c > @@ -473,6 +473,15 @@ void qmp_migrate_set_downtime(double value, Error **errp) > max_downtime = (uint64_t)value; > } > > +bool migrate_auto_converge(void) > +{ > + MigrationState *s; > + > + s = migrate_get_current(); > + > + return s->enabled_capabilities[MIGRATION_CAPABILITY_AUTO_CONVERGE]; > +} > + > int migrate_use_xbzrle(void) > { > MigrationState *s; > diff --git a/qapi-schema.json b/qapi-schema.json > index a80ee40..c019fec 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -605,10 +605,13 @@ > # This feature allows us to minimize migration traffic for certain work > # loads, by sending compressed difference of the pages > # > +# @auto-converge: If enabled, QEMU will automatically throttle down the guest > +# to speed up convergence of RAM migration. (since 1.6) > +# > # Since: 1.2 > ## > { 'enum': 'MigrationCapability', > - 'data': ['xbzrle'] } > + 'data': ['xbzrle', 'auto-converge'] } > > ## > # @MigrationCapabilityStatus > Reviewed-by: Orit Wasserman