On 10/21/2016 02:42 PM, Juan Quintela wrote: > Indicates the number of threads that we would create. By default we > create 2 threads. > > Signed-off-by: Juan Quintela > --- > @@ -1386,6 +1389,9 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict) > p.has_downtime_limit = true; > use_int_value = true; > break; > + case MIGRATION_PARAMETER_X_MULTIFD_THREADS: > + p.has_x_multifd_threads = true; > + break; Won't work unless you add a line 'use_int_value = true;' > } > > if (use_int_value) { > @@ -1402,6 +1408,7 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict) > p.cpu_throttle_initial = valueint; > p.cpu_throttle_increment = valueint; > p.downtime_limit = valueint; > + p.x_multifd_threads = valueint; > } See also commit bb2b777 as a regression fix for a missing use_int_value. > +++ b/qapi-schema.json > @@ -665,13 +665,16 @@ > # @downtime-limit: set maximum tolerated downtime for migration. maximum > # downtime in milliseconds (Since 2.8) > # > +# @x-multifd-threads: Number of threads used to migrate data in parallel > +# The default value is 1 (since 2.8) > +# > # Since: 2.4 > ## > { 'enum': 'MigrationParameter', > 'data': ['compress-level', 'compress-threads', 'decompress-threads', > 'cpu-throttle-initial', 'cpu-throttle-increment', > 'tls-creds', 'tls-hostname', 'max-bandwidth', > - 'downtime-limit'] } > + 'downtime-limit', 'x-multifd-threads'] } > > # > # @migrate-set-parameters > @@ -726,6 +729,9 @@ > # @downtime-limit: set maximum tolerated downtime for migration. maximum > # downtime in milliseconds (Since 2.8) > # > +# @x-multifd-threads: Number of threads used to migrate data in parallel > +# The default value is 1 (since 2.8) Pre-existing in the other parameters, but we have an inconsistent use of #optional markers here. > +# > # Since: 2.4 > ## > { 'struct': 'MigrationParameters', > @@ -737,7 +743,8 @@ > '*tls-creds': 'str', > '*tls-hostname': 'str', > '*max-bandwidth': 'int', > - '*downtime-limit': 'int'} } > + '*downtime-limit': 'int', > + '*x-multifd-threads': 'int'} } > ## > # @query-migrate-parameters > # > -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org