All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] migration: fix a source hang on cancel before the channel connects
@ 2026-11-25 19:31 Denis V. Lunev
  2026-11-25 19:31 ` [PATCH 1/2] migration: fix " Denis V. Lunev
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Denis V. Lunev @ 2026-11-25 19:31 UTC (permalink / raw)
  To: qemu-devel
  Cc: den, Peter Xu, Fabiano Rosas, Marc-André Lureau,
	Laurent Vivier

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. We hit this in an automated test that aborts a live migration
right after starting it.

Patch 2 adds a qtest for this window, which Peter left for later when
fixing the early-cancel crash in 4f08b870f8 [1].

[1] https://lore.kernel.org/r/20260421175820.302795-1-peterx@redhat.com

Signed-off-by: Denis V. Lunev <den@openvz.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: Fabiano Rosas <farosas@suse.de>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>

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

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


base-commit: 2bfbe39d0fff8af881cffe2bab9b615e77807c35
--
2.55.0



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

end of thread, other threads:[~2026-11-27 14:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 19:31 [PATCH 0/2] migration: fix a source hang on cancel before the channel connects Denis V. Lunev
2026-11-25 19:31 ` [PATCH 1/2] migration: fix " Denis V. Lunev
2026-11-25 19:31 ` [PATCH 2/2] tests/qtest/migration: test " Denis V. Lunev
2026-11-26 19:33   ` Peter Xu
2026-11-25 23:26 ` [PATCH 0/2] migration: fix a source hang on " Fabiano Rosas
2026-11-26 14:02   ` Denis V. Lunev
2026-11-26 14:38     ` Fabiano Rosas
2026-11-26 19:32       ` Peter Xu
2026-11-26 19:39         ` Peter Xu
2026-11-26 21:20         ` Fabiano Rosas
2026-11-27 12:22           ` Peter Xu
2026-11-27 12:49             ` Fabiano Rosas
2026-11-27 13:28               ` Peter Xu
2026-11-27 14:21                 ` Fabiano Rosas
2026-11-27 14:59                   ` Peter Xu

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.