migration: Create x-multifd-page-count parameter
Indicates how many pages we are going to send in each batch to a multifd
thread.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Be consistent with defaults and documentation
Use new DEFINE_PROP_*
Rename x-multifd-group to x-multifd-page-count
diff --git a/qapi/migration.json b/qapi/migration.json
index c766fb1..f8b365e 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -471,6 +471,9 @@
# number of sockets used for migration. The
# default value is 2 (since 2.11)
#
+# @x-multifd-page-count: Number of pages sent together to a thread
+# The default value is 16 (since 2.11)
+#
# Since: 2.4
##
{ 'enum': 'MigrationParameter',
@@ -478,7 +481,7 @@
'cpu-throttle-initial', 'cpu-throttle-increment',
'tls-creds', 'tls-hostname', 'max-bandwidth',
'downtime-limit', 'x-checkpoint-delay', 'block-incremental',
- 'x-multifd-channels'] }
+ 'x-multifd-channels', 'x-multifd-page-count' ] }
##
# @MigrateSetParameters:
@@ -539,6 +542,9 @@
# number of sockets used for migration. The
# default value is 2 (since 2.11)
#
+# @x-multifd-page-count: Number of pages sent together to a thread
+# The default value is 16 (since 2.11)
+#
# Since: 2.4
##
# TODO either fuse back into MigrationParameters, or make
@@ -555,7 +561,8 @@
'*downtime-limit': 'int',
'*x-checkpoint-delay': 'int',
'*block-incremental': 'bool',
- '*x-multifd-channels': 'int' } }
+ '*x-multifd-channels': 'int',
+ '*x-multifd-page-count': 'int' } }
##
# @migrate-set-parameters:
@@ -631,6 +638,9 @@
# number of sockets used for migration.
# The default value is 2 (since 2.11)
#
+# @x-multifd-page-count: Number of pages sent together to a thread
+# The default value is 16 (since 2.11)
+#
# Since: 2.4
##
{ 'struct': 'MigrationParameters',
@@ -645,7 +655,8 @@
'*downtime-limit': 'int',
'*x-checkpoint-delay': 'int',
'*block-incremental': 'bool' ,
- '*x-multifd-channels': 'int' } }
+ '*x-multifd-channels': 'int',
+ '*x-multifd-page-count': 'int' } }
##
# @query-migrate-parameters: