qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] migration: Test the new "file:" migration
@ 2023-06-26 18:22 Fabiano Rosas
  2023-06-26 18:22 ` [PATCH 1/6] migration: Set migration status early in incoming side Fabiano Rosas
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Fabiano Rosas @ 2023-06-26 18:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Juan Quintela, Peter Xu, Steve Sistare, Daniel P . Berrangé

Based-on:
[PATCH V3 0/2] migration file URI
https://lore.kernel.org/r/1687466251-310524-1-git-send-email-steven.sistare@oracle.com

Here's the test for the file: migration.

I hit an issue with the setting of migration status. If we call
query-migrate too soon after migrate-incoming, the query returns an
empty response because we're not setting the MIGRATION_STATUS_SETUP in
the incoming path. We just send the event, but never actually change
state.

Aside from the fix, there's some tidying up to avoid duplicating too
much code in the tests.

Thanks

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

Fabiano Rosas (5):
  migration: Set migration status early in incoming side
  tests/qtest: migration: Expose migrate_set_capability
  tests/qtest: migration: Add migrate_incoming_qmp helper
  tests/qtest: migration: Use migrate_incoming_qmp where appropriate
  tests/qtest: migration: Add support for negative testing of
    qmp_migrate

Nikolay Borisov (1):
  tests/qtest: migration-test: Add tests for file-based migration

 migration/migration.c             |  17 ++++-
 tests/qtest/libqtest.c            |  33 ++++++++++
 tests/qtest/libqtest.h            |  28 ++++++++
 tests/qtest/meson.build           |   1 +
 tests/qtest/migration-helpers.c   |  61 +++++++++++++++++
 tests/qtest/migration-helpers.h   |  11 ++++
 tests/qtest/migration-test.c      | 106 +++++++++++++++++++++++-------
 tests/qtest/virtio-net-failover.c |  77 +++-------------------
 8 files changed, 241 insertions(+), 93 deletions(-)

-- 
2.35.3



^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 0/6] migration: Test the new "file:" migration
@ 2023-06-28 16:55 Fabiano Rosas
  2023-06-28 16:55 ` [PATCH 4/6] tests/qtest: migration: Use migrate_incoming_qmp where appropriate Fabiano Rosas
  0 siblings, 1 reply; 14+ messages in thread
From: Fabiano Rosas @ 2023-06-28 16:55 UTC (permalink / raw)
  To: qemu-devel
  Cc: Juan Quintela, Peter Xu, Steve Sistare, Daniel P . Berrangé

Based-on:
[PATCH V3 0/2] migration file URI
https://lore.kernel.org/r/1687466251-310524-1-git-send-email-steven.sistare@oracle.com

Since v1:

- added the force-emit-setup-event property
- added verification that the skipped region is empty

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

v1:
https://lore.kernel.org/r/20230626182210.8792-1-farosas@suse.de

Here's the test for the file: migration.

I hit an issue with the setting of migration status. If we call
query-migrate too soon after migrate-incoming, the query returns an
empty response because we're not setting the MIGRATION_STATUS_SETUP in
the incoming path. We just send the event, but never actually change
state.

Aside from the fix, there's some tidying up to avoid duplicating too
much code in the tests.

Thanks

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

Fabiano Rosas (6):
  migration: Set migration status early in incoming side
  tests/qtest: migration: Expose migrate_set_capability
  tests/qtest: migration: Add migrate_incoming_qmp helper
  tests/qtest: migration: Use migrate_incoming_qmp where appropriate
  tests/qtest: migration: Add support for negative testing of
    qmp_migrate
  tests/qtest: migration-test: Add tests for file-based migration

 migration/migration.c             |  17 +++-
 migration/migration.h             |  11 +++
 migration/options.c               |  13 +++
 migration/options.h               |   1 +
 tests/qtest/libqtest.c            |  33 +++++++
 tests/qtest/libqtest.h            |  28 ++++++
 tests/qtest/meson.build           |   1 +
 tests/qtest/migration-helpers.c   |  61 +++++++++++++
 tests/qtest/migration-helpers.h   |  11 +++
 tests/qtest/migration-test.c      | 144 +++++++++++++++++++++++++-----
 tests/qtest/virtio-net-failover.c |  77 ++--------------
 11 files changed, 304 insertions(+), 93 deletions(-)

-- 
2.35.3



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-06-28 16:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26 18:22 [PATCH 0/6] migration: Test the new "file:" migration Fabiano Rosas
2023-06-26 18:22 ` [PATCH 1/6] migration: Set migration status early in incoming side Fabiano Rosas
2023-06-27  9:11   ` Juan Quintela
2023-06-27 12:36     ` Fabiano Rosas
2023-06-26 18:22 ` [PATCH 2/6] tests/qtest: migration: Expose migrate_set_capability Fabiano Rosas
2023-06-27  9:12   ` Juan Quintela
2023-06-26 18:22 ` [PATCH 3/6] tests/qtest: migration: Add migrate_incoming_qmp helper Fabiano Rosas
2023-06-26 18:22 ` [PATCH 4/6] tests/qtest: migration: Use migrate_incoming_qmp where appropriate Fabiano Rosas
2023-06-27  9:13   ` Juan Quintela
2023-06-26 18:22 ` [PATCH 5/6] tests/qtest: migration: Add support for negative testing of qmp_migrate Fabiano Rosas
2023-06-26 18:22 ` [PATCH 6/6] tests/qtest: migration-test: Add tests for file-based migration Fabiano Rosas
2023-06-27  9:07   ` Daniel P. Berrangé
2023-06-27 12:54     ` Fabiano Rosas
  -- strict thread matches above, loose matches on Subject: below --
2023-06-28 16:55 [PATCH 0/6] migration: Test the new "file:" migration Fabiano Rosas
2023-06-28 16:55 ` [PATCH 4/6] tests/qtest: migration: Use migrate_incoming_qmp where appropriate Fabiano Rosas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).