Skip to content

Initial VHDX support (and a bug fix for QCOW)

Jeff Cody qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 41 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7block: only force IO completion in .bdrv_truncate if we are shrinkingblock.c+8 -230 replies
2/7qemu: add castagnoli crc32c checksum algorithminclude/qemu/crc32c.h util/Makefile.objs util/crc32c.c+151 -00 replies
3/7block: vhdx header for the QEMU support of VHDX imagesblock/vhdx.h+326 -02 replies
4/7block: initial VHDX driver support framework - supports open and probeblock/Makefile.objs block/vhdx.c+718 -04 replies
5/7block: add read-only support to VHDX image format.block/vhdx.c+121 -20 replies
6/7block: add header update capability for VHDX images.block/vhdx.c+163 -23 replies
7/7block: add write support for VHDX imagesblock/vhdx.c+142 -22 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 0/7] Initial VHDX support (and a bug fix for QCOW)

Note: Patch 1/7 is a bug fix for QCOW, that is also needed for VHDX

This adds the initial support for VHDX image files. It supports both read and write operations, across fixed and dynamic files.

Notably, the following is not yet supported:
* Differencing files
* Log replay (so we will refuse to open any images that are not 'clean')
* .bdrv_create()

This series, and additional work to add in the above features, may be found at:

https://github.com/codyprime/qemu-kvm-jtc/tree/jtc-vhdx-v1
git://github.com/codyprime/qemu-kvm-jtc.git, branch jtc-vhdx-v1

Jeff Cody (7):
block: only force IO completion in .bdrv_truncate if we are shrinking
qemu: add castagnoli crc32c checksum algorithm
block: vhdx header for the QEMU support of VHDX images
block: initial VHDX driver support framework - supports open and probe
block: add read-only support to VHDX image format.
block: add header update capability for VHDX images.
block: add write support for VHDX images

 block.c               |   10 +-
 block/Makefile.objs   |    1 +
 block/vhdx.c          | 1137 +++++++++++++++++++++++++++++++++++++++++++++++++
 block/vhdx.h          |  326 ++++++++++++++
 include/qemu/crc32c.h |   35 ++
 util/Makefile.objs    |    1 +
 util/crc32c.c         |  115 +++++
 7 files changed, 1623 insertions(+), 2 deletions(-)
 create mode 100644 block/vhdx.c
 create mode 100644 block/vhdx.h
 create mode 100644 include/qemu/crc32c.h
 create mode 100644 util/crc32c.c
Signature · 1 line
1.8.1.4