]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add support for slices of type 'storage'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 10 Feb 2020 13:37:14 +0000 (14:37 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 14 Feb 2020 15:32:21 +0000 (16:32 +0100)
commit0e644e6e47a48830dc10b090a999d4ba2e7d5394
tree31a4fbc88f4c61172cb7f2d81bb65f8000e3cbdb
parent9b804ef5efcd3b1e91bbf75f4e94a35630c062c5
qemu: Add support for slices of type 'storage'

Implement support for the slice of type 'storage' which allows to set
the offset and size which modifies where qemu should look for the start
of the format container inside the image.

Since slicing is done using the 'raw' driver we need to add another
layer into the blockdev tree if there's any non-raw image format driver
used to access the data.

This patch adds the blockdev integration and setup of the image data so
that we can use the slices for any backing image.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_block.c
src/qemu/qemu_block.h
src/qemu/qemu_blockjob.c
src/qemu/qemu_command.c
src/qemu/qemu_domain.c