Skip to content

Support chain migration in test

[email protected] qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests/migration: Factor out per-process launch and setup helperstests/qtest/migration/framework.c tests/qtest/migration/framework.h+165 -1061 reply
2/3tests/migration: Retrieve serial path from QTestStatetests/qtest/libqtest.c tests/qtest/libqtest.h tests/qtest/migration/colo-tests.c +5 more+76 -410 replies
3/3tests/migration: Add chain (A to B to C) precopy migration teststests/qtest/migration/framework.c tests/qtest/migration/framework.h tests/qtest/migration/precopy-tests.c+153 -660 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Support chain migration in test

From: Nguyen Dinh Phi <[email protected]>

This series adds test infrastructure and test cases for multi-hop chain migration, where a VM migrates from host A to B and then from B to C.

The migration test TODO list mentions ping-pong migration (A→B→A) as a desirable scenario; the true ping-pong (A→B→A) would require the original source A to become a destination for the return leg.
This is not possible: a QEMU process launched without -incoming cannot later accept an incoming migration stream. Instead, this series implements chain migration (A→B→C): B was already launched with -incoming and can be re-wired as the source for the next hop, while a fresh QEMU instance C is started as the new destination.

Nguyen Dinh Phi (3):
tests/migration: Factor out per-process launch and setup helpers tests/migration: Retrieve serial path from QTestState tests/migration: Add chain (A to B to C) precopy migration tests

 tests/qtest/libqtest.c                |  16 +
 tests/qtest/libqtest.h                |   8 +
 tests/qtest/migration/colo-tests.c    |  14 +-
 tests/qtest/migration/cpr-tests.c     |   8 +-
 tests/qtest/migration/framework.c     | 475 ++++++++++++++++----------
 tests/qtest/migration/framework.h     |  21 +-
 tests/qtest/migration/misc-tests.c    |   4 +-
 tests/qtest/migration/precopy-tests.c |  51 ++-
 8 files changed, 389 insertions(+), 208 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)