All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [PATCH hci-8.1/hci-dev 0/2] migration: fix a source hang on cancel before the channel connects #VSTOR-155277
@ 2026-11-25 19:32 Denis V. Lunev
  2026-11-25 19:32 ` [PATCH hci-8.1 1/2] migration: fix " Denis V. Lunev
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Denis V. Lunev @ 2026-11-25 19:32 UTC (permalink / raw)
  To: svt-core; +Cc: andrey.drobyshev, den

Cancelling a migration right after starting it can hang the source
QEMU forever. This happens when the cancel arrives while the source is
still connecting to the destination and the connection then succeeds.
The source goes on as if nothing was cancelled, then waits for a reply
from the destination that never comes. It waits with the BQL held, so
the monitor stops answering too, and the only way out is to kill the
source. The hci-8.1 autotests hit it three times in
test_abort_live_migration_immediate: VSTOR-155277, VSTOR-156593 and
VSTOR-156857.

The same two patches go to qemu-devel. Here the test is adapted to the
older qtest framework.

Denis V. Lunev (2):
  migration: fix source hang on cancel before the channel connects
    #VSTOR-155277
  tests/qtest/migration: test cancel before the channel connects
    #VSTOR-155277

 migration/channel.c                   |  6 +++
 migration/migration.c                 |  2 +-
 migration/migration.h                 |  1 +
 tests/qtest/migration/precopy-tests.c | 67 +++++++++++++++++++++++++++
 4 files changed, 75 insertions(+), 1 deletion(-)


base-commit: 042da14bb2ceec27fe0680c3aca300395ba0072c
--
2.55.0


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

end of thread, other threads:[~2026-12-01  0:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 19:32 [PATCH hci-8.1/hci-dev 0/2] migration: fix a source hang on cancel before the channel connects #VSTOR-155277 Denis V. Lunev
2026-11-25 19:32 ` [PATCH hci-8.1 1/2] migration: fix " Denis V. Lunev
2026-12-01  0:30   ` no-reply
2026-11-25 19:32 ` [PATCH hci-8.1 2/2] tests/qtest/migration: test " Denis V. Lunev
2026-12-01  0:31   ` no-reply
2026-11-25 20:14 ` [PATCH hci-8.1/hci-dev 0/2] migration: fix a source hang on " Andrey Drobyshev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.