The first patch adds support to read and write VHDX images with 4k logical sector sizes. This is done by internally converting bdrv sectors of size 512 to logical sectors. VHDX image creation with 4k logical sector size is NOT implemented.
The second patch adds an iotest which reads and writes to a VHDX image with 4k logical sector size. Takeshi Suzuki (2): Add RW support for 4k sector size vhdx Add iotest for 4k sector size vhdx block/vhdx.c | 76 +++++++++++++++++-- tests/qemu-iotests/315 | 65 ++++++++++++++++ tests/qemu-iotests/315.out | 20 +++++ tests/qemu-iotests/sample_images/4k.vhdx.bz2 | Bin 0 -> 37834 bytes 4 files changed, 155 insertions(+), 6 deletions(-) create mode 100644 tests/qemu-iotests/315 create mode 100644 tests/qemu-iotests/315.out create mode 100644 tests/qemu-iotests/sample_images/4k.vhdx.bz2 -- 2.34.1