All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: "Denis V. Lunev" <den@openvz.org>
To: svt-core@virtuozzo.com
Cc: andrey.drobyshev@virtuozzo.com, den@openvz.org
Subject: [PATCH hci-8.1/hci-dev 0/2] migration: fix a source hang on cancel before the channel connects #VSTOR-155277
Date: Wed, 25 Nov 2026 20:32:02 +0100	[thread overview]
Message-ID: <20261125193204.1424799-1-den@openvz.org> (raw)

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


             reply	other threads:[~2026-11-25 19:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 19:32 Denis V. Lunev [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125193204.1424799-1-den@openvz.org \
    --to=den@openvz.org \
    --cc=andrey.drobyshev@virtuozzo.com \
    --cc=svt-core@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.