migration: Unify capabilities and parameters
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest51 patches 43 repliesIn review
- v224 patches 54 repliesSuperseded
- v121 patches 61 repliesSuperseded
v2 from the cover letter
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/51 | migration: Fix leak of block_bitmap_mappingmigration/ | +1 | 0 replies | |
| 2/51 | migration: Fix leak of cpr_exec_commandmigration/ | +1 | 1 reply | |
| 3/51 | migration: Add a qdev property for StrOrNullmigration/ | +67 | 1 reply | |
| 4/51 | tests/qtest/migration: Add a NULL parameters test for TLStests/ tests/ tests/ | +66 | 1 reply | |
| 5/51 | migration: Normalize tls argumentsmigration/ migration/ migration/ +2 more | +96 | 2 replies | |
| 6/51 | migration: Remove MigrateSetParametersmigration/ migration/ qapi/ | +28 | 0 replies | |
| 7/51 | qapi/migration: Don't document MigrationParameterqapi/ qapi/ | +3 | 0 replies | |
| 8/51 | migration: Run a post update routine after setting parametersmigration/ migration/ | +29 | 0 replies | |
| 9/51 | migration: Add a flag to track block-bitmap-mapping inputmigration/ migration/ migration/ | +12 | 0 replies | |
| 10/51 | migration: Remove checks for s->parameters has_* fieldsmigration/ migration/ | +30 | 1 reply | |
| 11/51 | migration: Do away with usage of QERR_INVALID_PARAMETER_VALUEmigration/ migration/ migration/ +1 more | +24 | 0 replies | |
| 12/51 | migration: Extract code to mark all parameters as presentmigration/ | +55 | 1 reply | |
| 13/51 | migration: Use QAPI_CLONE_MEMBERS in query_migrate_parametersmigration/ | +3 | 0 replies | |
| 14/51 | migration: Use QAPI_CLONE_MEMBERS in migrate_params_test_applymigration/ | +13 | 1 reply | |
| 15/51 | migration: Use QAPI_CLONE_MEMBERS in migrate_params_applymigration/ | +12 | 1 reply | |
| 16/51 | qapi: Add QAPI_MERGEinclude/ | +29 | 1 reply | |
| 17/51 | migration: Use QAPI_MERGE in migrate_params_test_applymigration/ | +22 | 1 reply | |
| 18/51 | migration: Cleanup hmp_info_migrate_parametersmigration/ | +163 | 0 replies | |
| 19/51 | migration: Add capabilities into MigrationParametersmigration/ migration/ migration/ +2 more | +474 | 0 replies | |
| 20/51 | migration: Remove s->capabilitiesmigration/ migration/ migration/ +2 more | +140 | 0 replies | |
| 21/51 | qapi/migration: Deprecate capabilities commandsdocs/ migration/ qapi/ | +30 | 0 replies | |
| 22/51 | migration: Store the initial values used for s->parametersmigration/ migration/ migration/ +1 more | +30 | 0 replies | |
| 23/51 | migration: Allow migrate commands to provide the migration configmigration/ migration/ migration/ +3 more | +62 | 0 replies | |
| 24/51 | migration: Allow incoming cmdline to take configsystem/ | +100 | 1 reply | |
| 25/51 | tests/qtest/migration: Pass MigrateCommon into test functionstests/ tests/ tests/ +6 more | +642 | 2 replies | |
| 26/51 | tests/qtest/migration: Pass MigrateStart into cancel teststests/ | +15 | 1 reply | |
| 27/51 | tests/qtest/migration: Fix misuse of listen_uritests/ tests/ tests/ +5 more | +85 | 2 replies | |
| 28/51 | tests/qtest/migration: Stop invoking migrate_incoming from hookstests/ tests/ tests/ +1 more | +29 | 3 replies | |
| 29/51 | tests/qtest/migration: Add config QDicttests/ tests/ | +4 | 1 reply | |
| 30/51 | tests/qtest/migration: Add temporary code to toggle usage of configtests/ tests/ tests/ | +35 | 5 replies | |
| 31/51 | tests/qtest/migration: Add a function for default capabilitiestests/ | +25 | 0 replies | |
| 32/51 | tests/qtest/migration: Adapt convergence routines to configtests/ tests/ tests/ +2 more | +52 | 5 replies | |
| 33/51 | tests/qtest/migration: Adapt the incoming cmdline for config passingtests/ | +10 | 0 replies | |
| 34/51 | tests/qtest/migration: Use migrate_incoming_qmp where possibletests/ tests/ | +21 | 1 reply | |
| 35/51 | tests/qtest/migration: Add a config parameter to migrate_qmp functionstests/ tests/ tests/ +4 more | +96 | 0 replies | |
| 36/51 | tests/qtest/migration: Move tls hook data out of specific hookstests/ | +84 | 0 replies | |
| 37/51 | tests/qtest/migration: Add new hook with datatests/ tests/ | +24 | 2 replies | |
| 38/51 | tests/qtest/migration: TLS x509: Refactor to use full hooktests/ | +29 | 1 reply | |
| 39/51 | tests/qtest/migration: TLS x509: Add init/cleanup routinestests/ | +75 | 1 reply | |
| 40/51 | tests/qtest/migration: TLS PSK: Refactor to use full hooktests/ | +36 | 1 reply | |
| 41/51 | tests/qtest/migration: TLS PSK: Add init/cleanup routinestests/ | +83 | 1 reply | |
| 42/51 | tests/qtest/migration: Remove multifd compression hooktests/ tests/ tests/ +2 more | +47 | 0 replies | |
| 43/51 | tests/qtest/migration: Convert postcopy tests to use configtests/ tests/ tests/ | +22 | 1 reply | |
| 44/51 | tests/qtest/migration: Convert TLS PSK tests to use configtests/ | +20 | 3 replies | |
| 45/51 | tests/qtest/migration: Convert TLS x509 tests to use configtests/ tests/ tests/ +1 more | +92 | 0 replies | |
| 46/51 | tests/qtest/migration: Convert compression tests to use configtests/ | +47 | 0 replies | |
| 47/51 | tests/qtest/migration: Convert file tests to use configtests/ tests/ tests/ | +41 | 0 replies | |
| 48/51 | tests/qtest/migration: Convert misc-tests to use configtests/ | +18 | 0 replies | |
| 49/51 | tests/qtest/migration: Convert precopy tests to use configtests/ tests/ tests/ +2 more | +46 | 0 replies | |
| 50/51 | tests/qtest/migration: Remove migrate_set_capabilities and code around ittests/ tests/ tests/ +5 more | +37 | 0 replies | |
| 51/51 | tests/qtest/migration: Further simplify TLS teststests/ | +8 | 0 replies |
Reviews trailers per patch
33 of 51 patches have a Reviewed-by or Acked-by.
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/51] migration: Unify capabilities and parameters
Hi, the scope of this series is the same as the previous versions, but to be explicit, these are various parts of which it's comprised:
1) Remove duplication of migration parameters documentation in migration.json.
2) Merge migration capabilities and parameters in MigrationState (as visible internally in migration code).
3) Deprecate migration capabilities QMP commands. Functionality previously provided by "capabilities" commands are now provided by "parameters" commands.
4) Introduce new 'config' argument to migration commands taking the entire set of options to use for a migration. Obsoletes the usage of migrate-set-parameters, except for "runtime" options, which are as of yet uncovered by this proposal.
5) Adapt all migration-test(s) to use the new config API exclusively.
Notable changes in this v3:
- Added the setter for the new StrOrNull qdev property
- Move the visitor code into a new QAPI_MERGE macro
- Converted all tests to use config
- Unfortunate side-quest: rework the TLS test hooks to support setting options before migrate_start.
CI run: https://gitlab.com/farosas/qemu/-/pipelines/2216127826
v2:
https://lore.kernel.org/r/[email protected]
v1:
https://lore.kernel.org/r/[email protected]
RFC:
https://lore.kernel.org/r/[email protected]
Fabiano Rosas (51):
migration: Fix leak of block_bitmap_mapping
migration: Fix leak of cpr_exec_command
migration: Add a qdev property for StrOrNull tests/qtest/migration: Add a NULL parameters test for TLS
migration: Normalize tls arguments
migration: Remove MigrateSetParameters
qapi/migration: Don't document MigrationParameter
migration: Run a post update routine after setting parameters
migration: Add a flag to track block-bitmap-mapping input
migration: Remove checks for s->parameters has_* fields
migration: Do away with usage of QERR_INVALID_PARAMETER_VALUE
migration: Extract code to mark all parameters as present
migration: Use QAPI_CLONE_MEMBERS in query_migrate_parameters
migration: Use QAPI_CLONE_MEMBERS in migrate_params_test_apply
migration: Use QAPI_CLONE_MEMBERS in migrate_params_apply
qapi: Add QAPI_MERGE
migration: Use QAPI_MERGE in migrate_params_test_apply
migration: Cleanup hmp_info_migrate_parameters
migration: Add capabilities into MigrationParameters
migration: Remove s->capabilities
qapi/migration: Deprecate capabilities commands
migration: Store the initial values used for s->parameters
migration: Allow migrate commands to provide the migration config
migration: Allow incoming cmdline to take config tests/qtest/migration: Pass MigrateCommon into test functions tests/qtest/migration: Pass MigrateStart into cancel tests tests/qtest/migration: Fix misuse of listen_uri tests/qtest/migration: Stop invoking migrate_incoming from hooks tests/qtest/migration: Add config QDict tests/qtest/migration: Add temporary code to toggle usage of config tests/qtest/migration: Add a function for default capabilities tests/qtest/migration: Adapt convergence routines to config tests/qtest/migration: Adapt the incoming cmdline for config passing tests/qtest/migration: Use migrate_incoming_qmp where possible tests/qtest/migration: Add a config parameter to migrate_qmp functions tests/qtest/migration: Move tls hook data out of specific hooks tests/qtest/migration: Add new hook with data tests/qtest/migration: TLS x509: Refactor to use full hook tests/qtest/migration: TLS x509: Add init/cleanup routines tests/qtest/migration: TLS PSK: Refactor to use full hook tests/qtest/migration: TLS PSK: Add init/cleanup routines tests/qtest/migration: Remove multifd compression hook tests/qtest/migration: Convert postcopy tests to use config tests/qtest/migration: Convert TLS PSK tests to use config tests/qtest/migration: Convert TLS x509 tests to use config tests/qtest/migration: Convert compression tests to use config tests/qtest/migration: Convert file tests to use config tests/qtest/migration: Convert misc-tests to use config tests/qtest/migration: Convert precopy tests to use config tests/qtest/migration: Remove migrate_set_capabilities and code around
it
tests/qtest/migration: Further simplify TLS tests
docs/about/deprecated.rst | 10 + include/qapi/type-helpers.h | 29 + migration/migration-hmp-cmds.c | 503 ++++++--- migration/migration.c | 52 +- migration/migration.h | 14 +- migration/options.c | 1183 ++++++++++----------- migration/options.h | 30 +- migration/page_cache.c | 6 +- migration/ram.c | 5 +- migration/savevm.c | 8 +- migration/tls.c | 2 +- qapi/migration.json | 569 ++++------ qapi/pragma.json | 1 + system/vl.c | 111 +- tests/qtest/migration/compression-tests.c | 179 ++-- tests/qtest/migration/cpr-tests.c | 137 +-- tests/qtest/migration/file-tests.c | 209 ++-- tests/qtest/migration/framework.c | 158 +-- tests/qtest/migration/framework.h | 29 +- tests/qtest/migration/migration-qmp.c | 64 +- tests/qtest/migration/migration-qmp.h | 21 +- tests/qtest/migration/migration-util.c | 72 +- tests/qtest/migration/migration-util.h | 9 +- tests/qtest/migration/misc-tests.c | 132 +-- tests/qtest/migration/postcopy-tests.c | 80 +- tests/qtest/migration/precopy-tests.c | 535 +++++----- tests/qtest/migration/tls-tests.c | 897 +++++++--------- tests/qtest/virtio-net-failover.c | 24 +- 28 files changed, 2512 insertions(+), 2557 deletions(-)
Signature · 1 line
2.51.0