]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: capabilities: Introduce QEMU_CAPS_BLOCKJOB_BACKING_MASK_PROTOCOL
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Nov 2023 14:19:35 +0000 (15:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Feb 2024 15:03:08 +0000 (16:03 +0100)
commitc38b4e34c8ff0daf171a5d885097a2dea1eadeda
treeb574c0872bb1128f01d67a7fdd10bf2830a95991
parent8c07850c18f9a6868d1e9db24957e2b3ce157ae9
qemu: capabilities: Introduce QEMU_CAPS_BLOCKJOB_BACKING_MASK_PROTOCOL

The capability is asserted when both block-stream and block-commit QMP
commands support the 'backing-mask-protocol' argument.

The argument causes qemu to record 'raw' as the backing file format in
case when a protocol node is used directly. This is needed to preserve
compatibility of images after a block-commit or block-pull libvirt
operation with older libvirt versions in case when we'll want to remove
the unneded 'raw' format drivers from the block graph.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
tests/qemucapabilitiesdata/caps_9.0.0_x86_64.xml