Skip to content

Block migration if any of the block device is busy

[email protected] qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 12 repliesIn review
  2. v33 patches 1 replySuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches5 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: Add bdrv_are_busy()block.c block.h+15 -06 replies
2/3qerror: Add error telling that block dev usage prevents migrationqerror.c qerror.h+7 -01 reply
3/3migration: block migration when any of the block device is busymigration.c+5 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan Hajnoczi
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Qemu-devel] [PATCH V4 0/3] Block migration if any of the block device is busy

From: Benoît Canet <[email protected]>

This patchset is designed to avoid starting a live migration while any of the block device is busy.

Tested with the following sequence:

QEMU 1.1.50 monitor - type 'help' for more information (qemu) block_stream virtio0 1k
(qemu) migrate tcp:localhost:4444
migrate: Migration is blocked by streaming (qemu) block_job_cancel virtio0
(qemu) migrate tcp:localhost:4444
migrate: Connection can not be completed immediately (qemu)
=> migration then succeed

in v2:
stefanha: Rename bdrv_have_block_jobs() to bdrv_are_busy() and make it return -EBUSY.
paolo: remove spurious bdrv_close()

in v3
pm215: rewrite confusing error message

in v4:
stefanha: make the error message more general

Benoît Canet (3):
block: Add bdrv_are_busy()
qerror: Add error telling that block dev usage prevents migration
migration: block migration when streaming block jobs are running.

 block.c     |   13 +++++++++++++
 block.h     |    2 ++
 migration.c |    5 +++++
 qerror.c    |    4 ++++
 qerror.h    |    3 +++
 5 files changed, 27 insertions(+)
Signature · 1 line
1.7.9.5