From patchwork Tue Mar 28 15:27:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. David Alan Gilbert" X-Patchwork-Id: 744356 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vsvv64pqkz9s2Q for ; Wed, 29 Mar 2017 02:29:06 +1100 (AEDT) Received: from localhost ([::1]:53926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cst3P-0007Yc-Rp for incoming@patchwork.ozlabs.org; Tue, 28 Mar 2017 11:29:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cst2o-0007Uu-76 for qemu-devel@nongnu.org; Tue, 28 Mar 2017 11:28:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cst2n-00070T-91 for qemu-devel@nongnu.org; Tue, 28 Mar 2017 11:28:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55260) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cst2n-000706-3u for qemu-devel@nongnu.org; Tue, 28 Mar 2017 11:28:25 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 19EE8C093568 for ; Tue, 28 Mar 2017 15:28:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 19EE8C093568 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dgilbert@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 19EE8C093568 Received: from dgilbert-t530.redhat.com (ovpn-117-173.ams2.redhat.com [10.36.117.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id 25FC681C0A; Tue, 28 Mar 2017 15:28:20 +0000 (UTC) From: "Dr. David Alan Gilbert (git)" To: qemu-devel@nongnu.org, quintela@redhat.com, lvivier@redhat.com Date: Tue, 28 Mar 2017 16:27:41 +0100 Message-Id: <20170328152745.28186-3-dgilbert@redhat.com> In-Reply-To: <20170328152745.28186-1-dgilbert@redhat.com> References: <20170328152745.28186-1-dgilbert@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 28 Mar 2017 15:28:24 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 2/6] migration/announce: Accessor functions for parameters X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kashyap@redhat.com, germano@redhat.com, jasowang@redhat.com, armbru@redhat.com, jdenemar@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: "Dr. David Alan Gilbert" Standard accessor functions for each of the parameters Signed-off-by: Dr. David Alan Gilbert --- include/migration/migration.h | 5 +++++ migration/migration.c | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/include/migration/migration.h b/include/migration/migration.h index 5720c88..a75800c 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -340,6 +340,11 @@ int migrate_compress_threads(void); int migrate_decompress_threads(void); bool migrate_use_events(void); +int migrate_announce_initial(void); +int migrate_announce_max(void); +int migrate_announce_rounds(void); +int migrate_announce_step(void); + /* Sending on the return path - generic and then for each message type */ void migrate_send_rp_message(MigrationIncomingState *mis, enum mig_rp_message_type message_type, diff --git a/migration/migration.c b/migration/migration.c index 96c4ad6..6ae43a6 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1483,6 +1483,26 @@ int64_t migrate_xbzrle_cache_size(void) return s->xbzrle_cache_size; } +int migrate_announce_initial(void) +{ + return migrate_get_current()->parameters.announce_initial; +} + +int migrate_announce_max(void) +{ + return migrate_get_current()->parameters.announce_max; +} + +int migrate_announce_rounds(void) +{ + return migrate_get_current()->parameters.announce_rounds; +} + +int migrate_announce_step(void) +{ + return migrate_get_current()->parameters.announce_step; +} + /* migration thread support */ /* * Something bad happened to the RP stream, mark an error