migration: HMP: Adjust the order of output fields
PATCH 1/1 migration: HMP: Adjust the order of output fields
Adjust the positions of 'tls-authz' and 'max-postcopy-bandwidth' in the fields output by the 'info migrate_parameters' command so that related fields are next to each other.
For clarity only, no functional changes.
Sample output after this commit:
(qemu) info migrate_parameters
...
max-cpu-throttle: 99
tls-creds: ''
tls-hostname: ''
tls-authz: ''
max-bandwidth: 134217728 bytes/second
avail-switchover-bandwidth: 0 bytes/second
max-postcopy-bandwidth: 0 bytes/second
downtime-limit: 300 ms
...
--- migration/migration-hmp-cmds.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
migration/migration-hmp-cmds.c +8 -6
@@ -353,6 +353,10 @@ void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict)monitor_printf (mon,"%s: '%s'\n" ,MigrationParameter_str (MIGRATION_PARAMETER_TLS_HOSTNAME ), params->tls_hostname); +assert (params->tls_authz); +monitor_printf (mon,"%s: '%s'\n" , +MigrationParameter_str (MIGRATION_PARAMETER_TLS_AUTHZ ), + params->tls_authz);assert (params->has_max_bandwidth); monitor_printf(mon, "%s: %" PRIu64 " bytes/second\n", MigrationParameter_str(MIGRATION_PARAMETER_MAX_BANDWIDTH),
@@ -361,6 +365,10 @@ void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict)monitor_printf (mon,"%s: %" PRIu64" bytes/second\n" ,MigrationParameter_str (MIGRATION_PARAMETER_AVAIL_SWITCHOVER_BANDWIDTH ), params->avail_switchover_bandwidth); +assert (params->has_max_postcopy_bandwidth); +monitor_printf (mon,"%s: %" PRIu64" bytes/second\n" , +MigrationParameter_str (MIGRATION_PARAMETER_MAX_POSTCOPY_BANDWIDTH ), + params->max_postcopy_bandwidth);assert (params->has_downtime_limit); monitor_printf(mon, "%s: %" PRIu64 " ms\n", MigrationParameter_str(MIGRATION_PARAMETER_DOWNTIME_LIMIT),
@@ -383,12 +391,6 @@ void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict)monitor_printf (mon,"%s: %" PRIu64" bytes\n" ,MigrationParameter_str (MIGRATION_PARAMETER_XBZRLE_CACHE_SIZE ), params->xbzrle_cache_size); -monitor_printf (mon,"%s: %" PRIu64"\n" , -MigrationParameter_str (MIGRATION_PARAMETER_MAX_POSTCOPY_BANDWIDTH ), - params->max_postcopy_bandwidth); -monitor_printf (mon,"%s: '%s'\n" , -MigrationParameter_str (MIGRATION_PARAMETER_TLS_AUTHZ ), - params->tls_authz);if (params->has_block_bitmap_mapping) {const BitmapMigrationNodeAliasList *bmnal;
Signature · 1 line
2.39.5
Quoted 6 lines · Bin Guo
Adjust the positions of 'tls-authz' and 'max-postcopy-bandwidth' in the fields output by the 'info
migrate_parameters' command so that related fields are next to each other.For clarity only, no functional changes.
Quoted 10 lines
Sample output after this commit:
(qemu) infomigrate_parameters
...
max-cpu-throttle: 99
tls-creds: ''
tls-hostname: ''
tls-authz: ''
max-bandwidth: 134217728 bytes/second
avail-switchover-bandwidth: 0 bytes/second
max-postcopy-bandwidth: 0 bytes/second
This can be moved even above "avail-switchover-bandwidth", IMHO.
With that, feel free to take:
Quoted 51 lines
downtime-limit: 300 ms
...Signed-off-by Bin Guo <[email protected]>--- migration/migration-hmp-cmds.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)migration/migration-hmp-cmds.c +8
-6@@ -353,6 +353,10 @@ void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict)monitor_printf (mon,"%s: '%s'\n" ,MigrationParameter_str (MIGRATION_PARAMETER_TLS_HOSTNAME ), params->tls_hostname); +assert (params->tls_authz); +monitor_printf (mon,"%s: '%s'\n" , +MigrationParameter_str (MIGRATION_PARAMETER_TLS_AUTHZ ), + params->tls_authz);assert (params->has_max_bandwidth); monitor_printf(mon, "%s: %" PRIu64 " bytes/second\n", MigrationParameter_str(MIGRATION_PARAMETER_MAX_BANDWIDTH),@@ -361,6 +365,10 @@ void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict)monitor_printf (mon,"%s: %" PRIu64" bytes/second\n" ,MigrationParameter_str (MIGRATION_PARAMETER_AVAIL_SWITCHOVER_BANDWIDTH ), params->avail_switchover_bandwidth); +assert (params->has_max_postcopy_bandwidth); +monitor_printf (mon,"%s: %" PRIu64" bytes/second\n" , +MigrationParameter_str (MIGRATION_PARAMETER_MAX_POSTCOPY_BANDWIDTH ), + params->max_postcopy_bandwidth);assert (params->has_downtime_limit); monitor_printf(mon, "%s: %" PRIu64 " ms\n", MigrationParameter_str(MIGRATION_PARAMETER_DOWNTIME_LIMIT),@@ -383,12 +391,6 @@ void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict)monitor_printf (mon,"%s: %" PRIu64" bytes\n" ,MigrationParameter_str (MIGRATION_PARAMETER_XBZRLE_CACHE_SIZE ), params->xbzrle_cache_size); -monitor_printf (mon,"%s: %" PRIu64"\n" , -MigrationParameter_str (MIGRATION_PARAMETER_MAX_POSTCOPY_BANDWIDTH ), - params->max_postcopy_bandwidth); -monitor_printf (mon,"%s: '%s'\n" , -MigrationParameter_str (MIGRATION_PARAMETER_TLS_AUTHZ ), - params->tls_authz);if (params->has_block_bitmap_mapping) {const BitmapMigrationNodeAliasList *bmnal;Signature · 1 line
2.39.5
Signature · 1 line
Peter Xu
Quoted 19 lines · Bin Guo
Adjust the positions of 'tls-authz' and 'max-postcopy-bandwidth' in the fields output by the 'info
migrate_parameters' command so that related fields are next to each other.For clarity only, no functional changes.
Sample output after this commit:
(qemu) infomigrate_parameters
...
max-cpu-throttle: 99
tls-creds: ''
tls-hostname: ''
tls-authz: ''
max-bandwidth: 134217728 bytes/second
avail-switchover-bandwidth: 0 bytes/second
max-postcopy-bandwidth: 0 bytes/second
downtime-limit: 300 ms
...
Quoted 1 line
Signed-off-by Bin Guo <[email protected]>
Quoted 18 lines · Peter Xu
Quoted 6 lines · Bin Guo
Adjust the positions of 'tls-authz' and 'max-postcopy-bandwidth' in the fields output by the 'info
migrate_parameters' command so that related fields are next to each other.For clarity only, no functional changes.
Quoted 10 lines
Sample output after this commit:
(qemu) infomigrate_parameters
...
max-cpu-throttle: 99
tls-creds: ''
tls-hostname: ''
tls-authz: ''
max-bandwidth: 134217728 bytes/second
avail-switchover-bandwidth: 0 bytes/second
max-postcopy-bandwidth: 0 bytes/second
Quoted 1 line
This can be moved even above "avail-switchover-bandwidth", IMHO.
I queued it with this change, please shoot if there's objections.
Thanks,
Signature · 1 line
Peter Xu