mbox series

[0/2] Deferred incoming migration through fd

Message ID 20190527093350.28567-1-yury-kotov@yandex-team.ru (mailing list archive)
Headers show
Series Deferred incoming migration through fd | expand

Message

Yury Kotov May 27, 2019, 9:33 a.m. UTC
Hi,

This series is a continuation of the previous two:
* migration: Fix handling fd protocol
* Add 'inline-fd:' protocol for migration

It's about such use case:
1. Target VM: exec ...,-incoming defer
2. Target VM: getfd("fd-mig")
3. Target VM: migrate-incoming("fd:"fd-mig")
4. Source VM: getfd("fd-mig")
5. Source VM: migrate("fd-mig")

Currently, it's not possible to do the step 3, because for incoming migration
"fd:" protocol expects an integer, not the name of fd.

Yury Kotov (2):
  migration: Fix fd protocol for incoming defer
  migration-test: Add a test for fd protocol

 migration/fd.c         |   8 +--
 migration/fd.h         |   2 +-
 tests/libqtest.c       |  83 ++++++++++++++++++++++++++++++--
 tests/libqtest.h       |  51 +++++++++++++++++++-
 tests/migration-test.c | 107 +++++++++++++++++++++++++++++++++++++++--
 5 files changed, 239 insertions(+), 12 deletions(-)