Received: from eggs.gnu.org ([2001:4830:134:3::10]:55931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiIRY-0006zY-4I for qemu-devel@nongnu.org; Wed, 15 Apr 2015 04:13:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiIRU-0005Ia-4D for qemu-devel@nongnu.org; Wed, 15 Apr 2015 04:13:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiIRT-0005Hu-Ux for qemu-devel@nongnu.org; Wed, 15 Apr 2015 04:13:04 -0400 From: Juan Quintela In-Reply-To: <552D0224.7060001@redhat.com> (Eric Blake's message of "Tue, 14 Apr 2015 06:03:48 -0600") References: <1428474011-30797-1-git-send-email-liang.z.li@intel.com> <1428474011-30797-13-git-send-email-liang.z.li@intel.com> <552D0224.7060001@redhat.com> Date: Wed, 15 Apr 2015 10:13:01 +0200 Message-ID: <871tjlhks2.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [v7 12/14] migration: Use an array instead of 3 parameters Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: armbru@redhat.com, Liang Li , qemu-devel@nongnu.org, lcapitulino@redhat.com, Yang Zhang , amit.shah@redhat.com, dgilbert@redhat.com Eric Blake wrote: > On 04/08/2015 12:20 AM, Liang Li wrote: >> Put the three parameters related to multiple thread (de)compression >> into an int array, and use an enum type to index the parameter. >> >> Signed-off-by: Liang Li >> Signed-off-by: Yang Zhang >> --- >> include/migration/migration.h | 4 +--- >> migration/migration.c | 31 +++++++++++++++++++------------ >> qapi-schema.json | 23 +++++++++++++++++++++++ >> 3 files changed, 43 insertions(+), 15 deletions(-) >> > >> +++ b/qapi-schema.json >> @@ -569,6 +569,29 @@ >> ## >> { 'command': 'query-migrate-capabilities', 'returns': ['MigrationCapabilityStatus']} >> >> +# @MigrationParameter >> +# >> +# Migration parameters enumeration >> +# >> +# @compress-level: Set the compression level to be used in live migration, >> +# the compression level is an integer between 0 and 9, where 0 means >> +# no compression, 1 means the best compression speed, and 9 means best >> +# compression ratio which will consume more CPU. >> +# >> +# @compress-threads: Set compression thread count to be used in live migration, >> +# the compression thread count is an integer between 1 and 255. >> +# >> +# @decompress-threads: Set decompression thread count to be used in live >> +# migration, the decompression thread count is an integer between 1 >> +# and 255. Usually, decompression is at least 4 times as fast as >> +# compression, so set the decompress-threads to the number about 1/4 >> +# of compress-threads is adequate. > > s/so set/so setting/ > >> +# >> +# Since: 2.3 > > 2.4 > > Maintainer can fix if a respin is not needed. Liang, I will fix the s/2.3/2.4/ while merging, no need of respin for this. Later, Juan.