Received: from eggs.gnu.org ([2001:4830:134:3::10]:54057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5WiP-0002zI-J3 for qemu-devel@nongnu.org; Wed, 25 May 2016 07:11:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5WiK-0004tQ-KA for qemu-devel@nongnu.org; Wed, 25 May 2016 07:11:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5WiK-0004t7-Ed for qemu-devel@nongnu.org; Wed, 25 May 2016 07:11:00 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 221C985543 for ; Wed, 25 May 2016 11:11:00 +0000 (UTC) Date: Wed, 25 May 2016 16:40:57 +0530 From: Amit Shah Message-ID: <20160525111057.GB4456@grmbl.mre> References: <1461751518-12128-1-git-send-email-berrange@redhat.com> <1461751518-12128-25-git-send-email-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461751518-12128-25-git-send-email-berrange@redhat.com> Subject: Re: [Qemu-devel] [PATCH v6 for-2.7 24/28] migration: don't use an array for storing migrate parameters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , Juan Quintela On (Wed) 27 Apr 2016 [11:05:14], Daniel P. Berrange wrote: > The MigrateState struct uses an array for storing migration > parameters. This presumes that all future parameters will > be integers too, which is not going to be the case. There > is no functional reason why an array is used, if anything > it makes the code less clear. The QAPI schema already > defines a struct - MigrationParameters - capable of storing > all the individual parameters, so just use that instead of > an array. > > Reviewed-by: Dr. David Alan Gilbert > Signed-off-by: Daniel P. Berrange > - .parameters[MIGRATION_PARAMETER_X_CPU_THROTTLE_INITIAL] = > - DEFAULT_MIGRATE_X_CPU_THROTTLE_INITIAL, > - .parameters[MIGRATION_PARAMETER_X_CPU_THROTTLE_INCREMENT] = > - DEFAULT_MIGRATE_X_CPU_THROTTLE_INCREMENT, This will get conflicts with current master after the autoconverge patches dropping the x-. I can handle these conflicts during merge if no respins are required. Amit