Virtuozzo QEMU development (svt-core@virtuozzo.com)
 help / color / mirror / Atom feed
From: "Denis V. Lunev" <den@openvz.org>
To: svt-core@virtuozzo.com
Cc: andrey.drobyshev@virtuozzo.com, den@virtuozzo.com,
	"Denis V. Lunev" <den@openvz.org>
Subject: [PATCH hci-8.0/hci-8.1 0/2] migration/block-dirty-bitmap: fix postcopy abort with bitmaps on several nodes #VSTOR-147066
Date: Thu, 24 Sep 2026 14:13:37 +0200	[thread overview]
Message-ID: <20260924121340.4119538-1-den@openvz.org> (raw)

Live migration of a VM with dirty bitmaps on more than one node aborts
the destination once the bitmaps move post-copy:

  qemu-kvm: ../block.c:6477: bdrv_lookup_bs: Assertion
  `qemu_in_main_thread()' failed.

libvirt triggers this on every such VM: a CBT backup leaves a persistent
x-libvirt-cbt bitmap on each disk, and libvirt migrates bitmaps with
dirty-bitmaps + migrate-start-postcopy. hci-upgrade hit it evacuating a
three-disk VM, see VSTOR-147066 for the RCA.

This is the series posted upstream, unchanged apart from the ticket tag:
https://lore.kernel.org/qemu-devel/20260924115611.4098417-1-den@openvz.org/

Both patches apply cleanly to hci-8.0 and hci-8.1. The VZ-only changes in
migration/block-dirty-bitmap.c (PSBM-105022, VSTOR-98747) touch the save
side only. The source-side runstate_set(-1) abort seen in the same
ticket on hci-7.4 is already fixed here by 9867d4ddd04.

Denis V. Lunev (2):
  migration/block-dirty-bitmap: fix postcopy abort with bitmaps on
    several nodes #VSTOR-147066
  iotests/migrate-bitmaps-postcopy-test: add a bitmap on a second node
    #VSTOR-147066

 migration/block-dirty-bitmap.c                | 59 +++++++++++++++++--
 .../tests/migrate-bitmaps-postcopy-test       | 19 ++++++
 2 files changed, 74 insertions(+), 4 deletions(-)


base-commit: e8a73d39faf578d58aa2c4b4b024226796c390e6
-- 
2.53.0


             reply	other threads:[~2026-09-24 12:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24 12:13 Denis V. Lunev [this message]
2026-09-24 12:13 ` [PATCH hci-8.0/hci-8.1 1/2] " Denis V. Lunev
2026-09-24 12:13 ` [PATCH hci-8.0/hci-8.1 2/2] iotests/migrate-bitmaps-postcopy-test: add a bitmap on a second node #VSTOR-147066 Denis V. Lunev
2026-09-24 13:58 ` [PATCH hci-8.0/hci-8.1 0/2] migration/block-dirty-bitmap: fix postcopy abort with bitmaps on several nodes #VSTOR-147066 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=20260924121340.4119538-1-den@openvz.org \
    --to=den@openvz.org \
    --cc=andrey.drobyshev@virtuozzo.com \
    --cc=den@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox