From patchwork Wed Apr 17 23:07:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mrhines@linux.vnet.ibm.com X-Patchwork-Id: 237380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 368C12C017D for ; Thu, 18 Apr 2013 09:10:12 +1000 (EST) Received: from localhost ([::1]:54552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USbUQ-0000pd-9U for incoming@patchwork.ozlabs.org; Wed, 17 Apr 2013 19:10:10 -0400 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 d01dlp03.pok.ibm.com (9.56.250.168) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 17 Apr 2013 17:07:30 -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 Received: from mrhinesdev.klabtestbed.com (klinux.watson.ibm.com [9.2.208.21]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r3HN7QXl022040; Wed, 17 Apr 2013 20:07:27 -0300 From: mrhines@linux.vnet.ibm.com To: qemu-devel@nongnu.org Date: Wed, 17 Apr 2013 19:07:16 -0400 Message-Id: <1366240040-10730-8-git-send-email-mrhines@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.10.4 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> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13041723-3620-0000-0000-000002151782 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 32.97.110.160 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 Subject: [Qemu-devel] [PULL v4 07/11] rdma: introduce capability for chunk registration X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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