Skip to content

scripts/migration: Fix analyze-migration.py and add a test

Fabiano Rosas qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest6 patches 12 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6migration: Add the configuration vmstate to the json writermigration/migration.c migration/savevm.c+17 -42 replies
2/6migration: Fix analyze-migration.py 'configuration' parsingscripts/analyze-migration.py+14 -41 reply
3/6migration: Add capability parsing to analyze-migration.pyscripts/analyze-migration.py+38 -01 reply
4/6migration: Fix analyze-migration.py when ignore-shared is usedscripts/analyze-migration.py+5 -03 replies
5/6migration: Fix analyze-migration read operation signednessscripts/analyze-migration.py+3 -31 reply
6/6tests/qtest/migration: Add a test for the analyze-migration scripttests/qtest/meson.build tests/qtest/migration-test.c+62 -03 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchThomas HuthJuan Quintela
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] scripts/migration: Fix analyze-migration.py and add a test

was: [PATCH] qtest/migration: Add a test for the analyze-migration script
https://lore.kernel.org/r/[email protected]

The analyze-migration.py script should be kept in sync with the code that generates the migration stream. The addition/removal of sections and flags from the stream can cause the script to break. Issues when parsing the stream mostly manifest in the form of cryptic python errors such as:

Looking at git log, it seems that this is a fairly useful script for people debugging issues with the migration stream. Let's add a test for it to catch bugs early avoid keeping a broken script in the tree.

People suggested putting this in avocado or a dedicated shell script. I hope looking at the patches it becomes clear that it's best to have this along with migration-test. Mostly to avoid duplicating capabilities code and arch-specific flags.

CI run: https://gitlab.com/farosas/qemu/-/pipelines/1030789937

Fabiano Rosas (5):
migration: Fix analyze-migration.py 'configuration' parsing
migration: Add capability parsing to analyze-migration.py
migration: Fix analyze-migration.py when ignore-shared is used
migration: Fix analyze-migration read operation signedness tests/qtest/migration: Add a test for the analyze-migration script

Nikolay Borisov (1):
migration: Add the configuration vmstate to the json writer

 migration/migration.c        |  1 +
 migration/savevm.c           | 20 ++++++++---
 scripts/analyze-migration.py | 67 ++++++++++++++++++++++++++++++++----
 tests/qtest/meson.build      |  2 ++
 tests/qtest/migration-test.c | 60 ++++++++++++++++++++++++++++++++
 5 files changed, 139 insertions(+), 11 deletions(-)
Signature · 1 line
2.35.3