Skip to content

block: allow flush on devices with open tray

John Snow qemu-devel 5 versions – Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 4 repliesApplied
  2. v42 patches 5 repliesSuperseded
  3. v32 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch9 repliesSuperseded
v11 patch7 repliesSuperseded

Changes in v5 from the cover letter

Fix bracket spacing in patch 1. By one space. :(
Added third patch to remove blk_flush_all.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3block: reintroduce bdrv_flush_allblock/io.c include/block/block.h+26 -00 replies
2/3qemu: use bdrv_flush_all for vm_stop et alcpus.c+2 -20 replies
3/3block-backend: remove blk_flush_allblock/block-backend.c hw/i386/xen/xen_platform.c hw/ide/piix.c +1 more+4 -250 replies

Reviews trailers per patch

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

PatchKevin WolfFam ZhengMax Reitz
SeriesA-b R-b
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/3] block: allow flush on devices with open tray

When I said "Final re-send," I was lying. Here's a v5. The title is also a misnomer by now :)

The move to blk_flush altered the behavior of migration and flushing nodes that are not reachable via the guest, but are still reachable via QEMU and may or may not need to be flushed.

This is intended for 2.6.2 and/or 2.7.1, to fix problems with libvirt et al being unable to migrate QEMU when the CDROM tray is open.

v5:
Fix bracket spacing in patch 1. By one space. :(
Added third patch to remove blk_flush_all.

v4:
Commit message update.

v3:
Reworking approach and reinstating bdrv_flush_all at Kevin's suggestion.

________________________________________________________________________________

For convenience, this branch is available at:
https://github.com/jnsnow/qemu.git branch atapi-tray-migfix
https://github.com/jnsnow/qemu/tree/atapi-tray-migfix

This version is tagged atapi-tray-migfix-v5:
https://github.com/jnsnow/qemu/releases/tag/atapi-tray-migfix-v5

John Snow (3):
block: reintroduce bdrv_flush_all
qemu: use bdrv_flush_all for vm_stop et al
block-backend: remove blk_flush_all

 block/block-backend.c          | 22 ----------------------
 block/io.c                     | 25 +++++++++++++++++++++++++
 cpus.c                         |  4 ++--
 hw/i386/xen/xen_platform.c     |  2 --
 hw/ide/piix.c                  |  4 ++++
 include/block/block.h          |  1 +
 include/sysemu/block-backend.h |  1 -
 7 files changed, 32 insertions(+), 27 deletions(-)
Signature · 1 line
2.7.4