Skip to content

block: bdrv_load/save_vmstate() cleanups

Kevin Wolf qemu-devel 1 version Applied

Status from this message: Applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6block: Introduce bdrv_preadv()block/io.c include/block/block.h+14 -71 reply
2/6block: Make .bdrv_load_vmstate() vectoredblock/io.c block/qcow2.c block/sheepdog.c +2 more+37 -131 reply
3/6block: Allow .bdrv_load/save_vmstate() to return 0/-errnoblock/io.c+14 -21 reply
4/6block: Make bdrv_load/save_vmstate coroutine_fnsblock/io.c include/block/block_int.h+64 -262 replies
5/6qcow2: Let vmstate call qcow2_co_preadv/pwrite directlyblock/qcow2.c+4 -203 replies
6/6block: Remove bs->zero_beyond_eofblock.c block/io.c include/block/block_int.h+23 -331 reply

Reviews trailers per patch

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

PatchEric BlakeFam ZhengStefan Hajnoczi
SeriesR-b R-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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 v1 thread

Cover letter [Qemu-devel] [PATCH 0/6] block: bdrv_load/save_vmstate() cleanups

This series contains a few cleanups with respect to the vmstate I/O functions. Apart from making the interface more consistent (writes were already vectored, but not reads), this makes use of the new byte-based .bdrv_co_preadv/pwritev callbacks in qcow2 to get rid of a few hacks, including bs->zero_beyond_eof.

Kevin Wolf (6):
block: Introduce bdrv_preadv()
block: Make .bdrv_load_vmstate() vectored
block: Allow .bdrv_load/save_vmstate() to return 0/-errno
block: Make bdrv_load/save_vmstate coroutine_fns
qcow2: Let vmstate call qcow2_co_preadv/pwrite directly
block: Remove bs->zero_beyond_eof

 block.c                   |   2 -
 block/io.c                | 173 +++++++++++++++++++++++++++++++---------------
 block/qcow2.c             |  28 ++------
 block/sheepdog.c          |  13 +++-
 include/block/block.h     |   2 +
 include/block/block_int.h |  13 ++--
 6 files changed, 143 insertions(+), 88 deletions(-)
Signature · 1 line
1.8.3.1