[RFC PATCH 0/5] tests: CPR-test-cases for live-TAP local migration

Vladimir Sementsov-Ogievskiy posted 5 patches 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260729093146.1893719-1-vsementsov@yandex-team.ru
Maintainers: John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>, Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>, Thomas Huth <th.huth+qemu@posteo.eu>, "Philippe Mathieu-Daudé" <philmd@mailo.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Zhao Liu <zhao1.liu@intel.com>
python/qemu/machine/machine.py                |  55 ++--
tests/functional/migration.py                 |   3 +-
tests/functional/qemu_test/testcase.py        |  12 +-
tests/functional/x86_64/test_tap_migration.py | 251 ++++++++++++++++--
4 files changed, 267 insertions(+), 54 deletions(-)
[RFC PATCH 0/5] tests: CPR-test-cases for live-TAP local migration
Posted by Vladimir Sementsov-Ogievskiy 2 months ago
Hi all!

Two new test cases to show that "local" TAP migration works
with both cpr-exec and cpr-transfer.

The series is marked as RFC, because I don't like the design (touching
internal fields, etc.). Testing cpr-exec is not a simple thing.

Still, I think, I can rework it to better design if needed.

I don't want to merge this into main series, as it already large
enough.

Based-on: <20260729091334.1863155-1-vsementsov@yandex-team.ru>
  "[PATCH v20 00/15] virtio-net: live-TAP local migration"

Pushed to:
    https://gitlab.com/vsementsov/qemu.git
      tag: up-tap-fd-migration-cpr-test-cases-v1

To run the test, use sudo, as test needs to configure TAP device:

    sudo PYTHONPATH=python:tests/functional \
    QEMU_TEST_QEMU_BINARY=$PWD/build/qemu-system-x86_64 \
    MESON_BUILD_ROOT=$PWD/build \
    ./build/pyvenv/bin/python3 tests/functional/x86_64/test_tap_migration.py

Vladimir Sementsov-Ogievskiy (5):
  python/qemu/machine: add possibility to postpone qmp connect
  tests/functional/qemu_test: drop *args argument from .get_vm()
  python/machine.py: store qemu console fd before closing
  tests/testcase.py: passthrough monitor_address
  test_tap_migration: add cpr test cases

 python/qemu/machine/machine.py                |  55 ++--
 tests/functional/migration.py                 |   3 +-
 tests/functional/qemu_test/testcase.py        |  12 +-
 tests/functional/x86_64/test_tap_migration.py | 251 ++++++++++++++++--
 4 files changed, 267 insertions(+), 54 deletions(-)

-- 
2.43.0