Skip to content

block: Use BB function in .bdrv_create() implementations

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 Latest11 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11block: Use writeback in .bdrv_create() implementationsblock/parallels.c block/qcow.c block/qcow2.c +5 more+22 -112 replies
2/11block: Introduce blk_set_allow_write_beyond_eof()block/block-backend.c include/sysemu/block-backend.h+17 -70 replies
3/11parallels: Use BB functions in .bdrv_create()block/parallels.c+14 -110 replies
4/11qcow: Use BB functions in .bdrv_create()block/qcow.c+14 -110 replies
5/11qcow2: Use BB functions in .bdrv_create()block/qcow2.c+33 -290 replies
6/11qed: Use BB functions in .bdrv_create()block/qed.c+15 -130 replies
7/11sheepdog: Use BB functions in .bdrv_create()block/sheepdog.c+24 -190 replies
8/11vdi: Use BB functions in .bdrv_create()block/vdi.c+14 -90 replies
9/11vhdx: Use BB functions in .bdrv_create()block/vhdx.c+16 -130 replies
10/11vmdk: Use BB functions in .bdrv_create()block/vmdk.c+43 -340 replies
11/11vpc: Use BB functions in .bdrv_create()block/vpc.c+21 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/11] block: Use BB function in .bdrv_create() implementations

All users of the block layers are supposed to go through a BlockBackend. The .bdrv_create() implementations are such users, so this series converts them.

This series (specifically patch 1) will also help with moving the writethrough cache implementation from BDS to BB, where it really belongs. Once this is moved, it wouldn't be possible to use bdrv_open() to use a standalone BDS writethrough any more.

Of course, writethrough doesn't make any sense in .bdrv_create() anyway, so while I'm still converting everything to BB where it would keep working (because that's the Right Thing), the drivers don't actually make use of this fact any more after this series.

Kevin Wolf (11):
block: Use writeback in .bdrv_create() implementations
block: Introduce blk_set_allow_write_beyond_eof()
parallels: Use BB functions in .bdrv_create()
qcow: Use BB functions in .bdrv_create()
qcow2: Use BB functions in .bdrv_create()
qed: Use BB functions in .bdrv_create()
sheepdog: Use BB functions in .bdrv_create()
vdi: Use BB functions in .bdrv_create()
vhdx: Use BB functions in .bdrv_create()
vmdk: Use BB functions in .bdrv_create()
vpc: Use BB functions in .bdrv_create()

 block/block-backend.c          | 23 +++++++++----
 block/parallels.c              | 24 ++++++++------
 block/qcow.c                   | 24 ++++++++------
 block/qcow2.c                  | 61 ++++++++++++++++++----------------
 block/qed.c                    | 28 ++++++++--------
 block/sheepdog.c               | 41 +++++++++++++----------
 block/vdi.c                    | 22 ++++++++-----
 block/vhdx.c                   | 28 +++++++++-------
 block/vmdk.c                   | 74 ++++++++++++++++++++++++------------------
 block/vpc.c                    | 36 +++++++++++---------
 include/sysemu/block-backend.h |  1 +
 11 files changed, 211 insertions(+), 151 deletions(-)
Signature · 1 line
1.8.3.1