Skip to content

allow online resizing of block devices

Christoph Hellwig qemu-devel 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesApplied
  2. v23 patches 7 repliesSuperseded
  3. v13 patches 14 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3block: add block_resize monitor commandblockdev.c blockdev.h hmp-commands.hx +1 more+78 -04 replies
2/3block: tell drivers about an image resizeblock.c block.h block_int.h +2 more+25 -80 replies
3/3virtio-blk: tell the guest about size changeshw/virtio-blk.c+10 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH 0/3 v3] allow online resizing of block devices

This patchset adds support for online resizing of block devices.

The first patch adds a new resize monitor command which call into the existing image resize code. This is the meat of the series and probably needs quite a bit of review and help as I'm not sure about how to implement the error handling for monitor commands correctly. Am I really supposed to add a new QERR_ definition for each possible error? And if yes how am I supposed to define them? The macros for them aren't exactly self-explaining.

The second patch adds a way to tell drivers about a resize, and the third one adds a guest notification for config changes to virtio-blk which allows the guest to pick it up without a rescan. I've just sent the corresponding Linux guest driver patch to Rusty.

Changes from version 2 to version 3:
- add missing braces
- use device as the argument name for the device string
- also rename the HMP version of the command to block_resize

Changes from version 1 to version 2:
- also add a QMP command (block_resize)
- use the o format for the size in the monitor command
- fix typos
- use QERR_UNDEFINED_ERROR for errors instead of unstructured strings
- remove the CDROM hint check
- add a reason argument to the change callback
---end quoted text---