Skip to content

block/qcow2: Migration handoff fixes and cleanups

Kevin Wolf qemu-devel 2 versions – Applied

Status from this message: Applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 2 repliesApplied
  2. v110 patches 56 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9qcow2: Write feature table only for v3 imagesblock/qcow2.c tests/qemu-iotests/031.out tests/qemu-iotests/061.out+26 -490 replies
2/9qcow2: Write full header on image creationblock/qcow2.c tests/qemu-iotests/031.out tests/qemu-iotests/036 +2 more+39 -00 replies
3/9block: Assert no write requests under BDRV_O_INCOMINGblock/io.c+2 -00 replies
4/9block: Fix error path in bdrv_invalidate_cache()block.c+2 -00 replies
5/9block: Rename BDRV_O_INCOMING to BDRV_O_INACTIVEblock.c block/io.c block/qcow2.c +3 more+14 -141 reply
6/9block: Inactivate BDS when migration completesblock.c include/block/block.h include/block/block_int.h +2 more+55 -00 replies
7/9qcow2: Implement .bdrv_inactivateblock/qcow2.c+28 -170 replies
8/9qcow2: Fix BDRV_O_INACTIVE handling in qcow2_invalidate_cache()block/qcow2.c+2 -10 replies
9/9qcow2: Make image inaccessible after failed qcow2_invalidate_cache()block/qcow2.c+3 -00 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchEric BlakeJohn Snow
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b R-b
7/9R-b
8/9R-b
9/9R-b

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/9] block/qcow2: Migration handoff fixes and cleanups

This is the non-controversal part of the qcow2 locking series, which just makes the state of images with respect to live migration clearer and fixes a few bugs we have in the handoff procedure and with writing the qcow2 feature table.

Kevin Wolf (9):
qcow2: Write feature table only for v3 images
qcow2: Write full header on image creation
block: Assert no write requests under BDRV_O_INCOMING
block: Fix error path in bdrv_invalidate_cache()
block: Rename BDRV_O_INCOMING to BDRV_O_INACTIVE
block: Inactivate BDS when migration completes
qcow2: Implement .bdrv_inactivate
qcow2: Fix BDRV_O_INACTIVE handling in qcow2_invalidate_cache()
qcow2: Make image inaccessible after failed qcow2_invalidate_cache()

 block.c                    |  42 +++++++++++++++--
 block/io.c                 |   2 +
 block/qcow2.c              | 110 +++++++++++++++++++++++++++------------------
 block/qed.c                |   4 +-
 include/block/block.h      |   3 +-
 include/block/block_int.h  |   1 +
 migration/migration.c      |   7 +++
 nbd.c                      |   2 +-
 qmp.c                      |  12 +++++
 tests/qemu-iotests/031.out |  17 +++----
 tests/qemu-iotests/036     |   2 +
 tests/qemu-iotests/036.out |   5 +++
 tests/qemu-iotests/061.out |  35 ++++++++-------
 13 files changed, 166 insertions(+), 76 deletions(-)
Signature · 1 line
1.8.3.1