[PATCH 0/3] Support chain migration in test

phind.uet@gmail.com posted 3 patches 2 weeks, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260709130032.58667-1-phind.uet@gmail.com
Maintainers: Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Lukas Straub <lukasstraub2@web.de>, Peter Xu <peterx@redhat.com>, "Maciej S. Szmigiero" <maciej.szmigiero@oracle.com>, Mark Kanda <mark.kanda@oracle.com>, Ben Chaney <bchaney@akamai.com>
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(-)
[PATCH 0/3] Support chain migration in test
Posted by phind.uet@gmail.com 2 weeks, 2 days ago
From: Nguyen Dinh Phi <phind.uet@gmail.com>

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(-)

-- 
2.50.1 (Apple Git-155)