Skip to content

vmdk: Implement x-blockdev-create

Fam Zheng qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v15 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vmdk: Refactor vmdk_create_extentblock/vmdk.c+44 -270 replies
2/4vmdk: Implement .bdrv_co_create callbackblock/vmdk.c qapi/block-core.json qapi/qapi-schema.json+399 -1301 reply
3/4iotests: Filter cid numbers in VMDK extent infotests/qemu-iotests/common.filter+1 -00 replies
4/4iotests: Add VMDK tests for blockdev-createtests/qemu-iotests/214 tests/qemu-iotests/214.out tests/qemu-iotests/group+573 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/4] vmdk: Implement x-blockdev-create

v2: Respin after comments by Markus:
- QAPI: drop qapi_enum_parse_full patch.
- Drop vmdk_subformat_str.
- Fix an uninitialized variable error.
- Authentic casing for subformat enum.

This adds vmdk support to x-blockdev-create command.

Unlike other formats, several VMDK subformats consists of multiple files (extents). In the QAPI interface we use an array of BlockdevRef to pass in. The management tool need to figure out how many extent files are needed but that is simple enough. There is a convention how VMware (as well as qemu-img) builds the extents' file names, but that isn't standardized, therefore it is not documented as part of this API. Extraneous extents in the end of the provided array are ignored.

A big part of the patch is refactoring so that BlockdevRef parsing can be hooked in.

Please review! Thanks.

Fam Zheng (4):
vmdk: Refactor vmdk_create_extent
vmdk: Implement .bdrv_co_create callback
iotests: Filter cid numbers in VMDK extent info
iotests: Add VMDK tests for blockdev-create

 block/vmdk.c                     | 530 +++++++++++++++++++++++++++------------
 qapi/block-core.json             |  67 ++++-
 qapi/qapi-schema.json            |   1 +
 tests/qemu-iotests/214           | 268 ++++++++++++++++++++
 tests/qemu-iotests/214.out       | 304 ++++++++++++++++++++++
 tests/qemu-iotests/common.filter |   1 +
 tests/qemu-iotests/group         |   1 +
 7 files changed, 1016 insertions(+), 156 deletions(-)
 create mode 100755 tests/qemu-iotests/214
 create mode 100644 tests/qemu-iotests/214.out
Signature · 1 line
2.14.3