From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USbS2-0005qP-T1 for qemu-devel@nongnu.org; Wed, 17 Apr 2013 19:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USbRs-0004zV-TU for qemu-devel@nongnu.org; Wed, 17 Apr 2013 19:07:42 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:37282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USbRs-0004yq-Lc for qemu-devel@nongnu.org; Wed, 17 Apr 2013 19:07:32 -0400 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 17 Apr 2013 17:07:32 -0600 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 08CB9C90028 for ; Wed, 17 Apr 2013 19:07:29 -0400 (EDT) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r3HN7T5o317322 for ; Wed, 17 Apr 2013 19:07:29 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r3HN7RXj022173 for ; Wed, 17 Apr 2013 20:07:27 -0300 From: mrhines@linux.vnet.ibm.com Date: Wed, 17 Apr 2013 19:07:16 -0400 Message-Id: <1366240040-10730-8-git-send-email-mrhines@linux.vnet.ibm.com> In-Reply-To: <1366240040-10730-1-git-send-email-mrhines@linux.vnet.ibm.com> References: <1366240040-10730-1-git-send-email-mrhines@linux.vnet.ibm.com> Subject: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, mst@redhat.com, quintela@redhat.com, owasserm@redhat.com, abali@us.ibm.com, mrhines@us.ibm.com, gokul@us.ibm.com, pbonzini@redhat.com From: "Michael R. Hines" This capability allows you to disable dynamic chunk registration for better throughput on high-performance links. It is enabled by default. Signed-off-by: Michael R. Hines --- migration.c | 10 ++++++++++ qapi-schema.json | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 3b4b467..5afd9b8 100644 --- a/migration.c +++ b/migration.c @@ -66,6 +66,7 @@ MigrationState *migrate_get_current(void) .state = MIG_STATE_SETUP, .bandwidth_limit = MAX_THROTTLE, .xbzrle_cache_size = DEFAULT_MIGRATE_CACHE_SIZE, + .enabled_capabilities[MIGRATION_CAPABILITY_X_CHUNK_REGISTER_DESTINATION] = true, }; return ¤t_migration; @@ -474,6 +475,15 @@ void qmp_migrate_set_downtime(double value, Error **errp) max_downtime = (uint64_t)value; } +bool migrate_chunk_register_destination(void) +{ + MigrationState *s; + + s = migrate_get_current(); + + return s->enabled_capabilities[MIGRATION_CAPABILITY_X_CHUNK_REGISTER_DESTINATION]; +} + int migrate_use_xbzrle(void) { MigrationState *s; diff --git a/qapi-schema.json b/qapi-schema.json index 751d3c2..297707e 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -599,10 +599,16 @@ # This feature allows us to minimize migration traffic for certain work # loads, by sending compressed difference of the pages # +# @x-chunk-register-destination: (since 1.5) RDMA option which controls whether +# or not the entire VM memory footprint is mlock() on demand or all at once. +# Refer to docs/rdma.txt for more advice on when to take advantage option. +# Enabled by default, and will be renamed to 'chunk-register-destination' +# after experimental testing is complete. +# # Since: 1.2 ## { 'enum': 'MigrationCapability', - 'data': ['xbzrle'] } + 'data': ['xbzrle', 'x-chunk-register-destination'] } ## # @MigrationCapabilityStatus -- 1.7.10.4