Skip to content

New -blockdev to define a host block device

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13block: Move error actions from DriveInfo to BlockDriverStateblock.c block.h block_int.h +5 more+26 -290 replies
2/13block: Decouple block device "commit all" from DriveInfoblock.c block.h blockdev.c +1 more+19 -140 replies
3/13monitor: Make "commit FOO" complain when FOO doesn't existblockdev.c+4 -20 replies
4/13block: New bdrv_next()block.c block.h+9 -00 replies
5/13block: Decouple savevm from DriveInfosavevm.c+14 -180 replies
6/13blockdev: Give drives internal linkageblockdev.c blockdev.h+1 -30 replies
7/13blockdev: Means to destroy blockdev only if made with drive_init()blockdev.c blockdev.h+42 -02 replies
8/13qdev: Decouple qdev_prop_drive from DriveInfoblock_int.h hw/fdc.c hw/ide/core.c +13 more+85 -732 replies
9/13blockdev: drive_get_by_id() is no longer used, removeblockdev.c blockdev.h+0 -130 replies
10/13qemu-option: New qemu_opts_reset()qemu-option.c qemu-option.h+10 -00 replies
11/13qemu-option: New qemu_opt_next(), qemu_opt_name()qemu-option.c qemu-option.h+17 -00 replies
12/13blockdev: Factor option value parsers out of drive_init()blockdev.c+86 -440 replies
13/13blockdev: New -blockdev to define a host block deviceblockdev.c blockdev.h qemu-config.c +3 more+246 -146 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/13] New -blockdev to define a host block device

I'm working on cleanly separating block device host and guest parts. I'd like to route all this work through Kevin's block tree. This is the first part: new option -blockdev. Description of 13/13 lists future work.

Series is based on my "Collect block device code in new blockdev.c", as amended in v2 3/3.

Markus Armbruster (13):
block: Move error actions from DriveInfo to BlockDriverState
block: Decouple block device "commit all" from DriveInfo
monitor: Make "commit FOO" complain when FOO doesn't exist
block: New bdrv_next()
block: Decouple savevm from DriveInfo
blockdev: Give drives internal linkage
blockdev: Means to destroy blockdev only if made with drive_init()
qdev: Decouple qdev_prop_drive from DriveInfo
blockdev: drive_get_by_id() is no longer used, remove
qemu-option: New qemu_opts_reset()
qemu-option: New qemu_opt_next(), qemu_opt_name()
blockdev: Factor option value parsers out of drive_init()
blockdev: New -blockdev to define a host block device

 block.c              |   29 ++++
 block.h              |   10 ++
 block_int.h          |    7 +-
 blockdev.c           |  355 +++++++++++++++++++++++++++++++++++++-------------
 blockdev.h           |   22 ++--
 hw/fdc.c             |   22 ++--
 hw/ide/core.c        |   16 +-
 hw/ide/internal.h    |    2 +-
 hw/ide/qdev.c        |    8 +-
 hw/pci-hotplug.c     |    4 +-
 hw/qdev-properties.c |   39 +++++-
 hw/qdev.h            |    6 +-
 hw/s390-virtio.c     |    2 +-
 hw/scsi-bus.c        |    8 +-
 hw/scsi-disk.c       |   18 ++--
 hw/scsi-generic.c    |    5 +-
 hw/scsi.h            |    2 +-
 hw/usb-msd.c         |   10 +-
 hw/virtio-blk.c      |    5 +-
 hw/virtio-pci.c      |   12 +--
 qemu-char.c          |    7 +-
 qemu-config.c        |   38 ++++++
 qemu-config.h        |    1 +
 qemu-option.c        |   22 +++
 qemu-option.h        |    5 +
 qemu-options.hx      |   49 +++++++
 savevm.c             |   32 ++---
 vl.c                 |   29 ++++-
 28 files changed, 557 insertions(+), 208 deletions(-)