mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
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>
This commit is contained in:
parent
8c07850c18
commit
c38b4e34c8
@ -701,6 +701,9 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
|||||||
"virtio-blk.iothread-mapping", /* QEMU_CAPS_VIRTIO_BLK_IOTHREAD_MAPPING */
|
"virtio-blk.iothread-mapping", /* QEMU_CAPS_VIRTIO_BLK_IOTHREAD_MAPPING */
|
||||||
"smp-clusters", /* QEMU_CAPS_SMP_CLUSTERS */
|
"smp-clusters", /* QEMU_CAPS_SMP_CLUSTERS */
|
||||||
"virtio-mem-pci.dynamic-memslots", /* QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS */
|
"virtio-mem-pci.dynamic-memslots", /* QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS */
|
||||||
|
|
||||||
|
/* 455 */
|
||||||
|
"blockjob.backing-mask-protocol", /* QEMU_CAPS_BLOCKJOB_BACKING_MASK_PROTOCOL */
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -5425,6 +5428,10 @@ virQEMUCapsProbeQMPSchemaCapabilities(virQEMUCaps *qemuCaps,
|
|||||||
virQEMUCapsSet(qemuCaps, cmd->flag);
|
virQEMUCapsSet(qemuCaps, cmd->flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (virQEMUQAPISchemaPathExists("block-commit/arg-type/backing-mask-protocol", schema) &&
|
||||||
|
virQEMUQAPISchemaPathExists("block-stream/arg-type/backing-mask-protocol", schema))
|
||||||
|
virQEMUCapsSet(qemuCaps, QEMU_CAPS_BLOCKJOB_BACKING_MASK_PROTOCOL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -681,6 +681,9 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
|||||||
QEMU_CAPS_SMP_CLUSTERS, /* -smp clusters= */
|
QEMU_CAPS_SMP_CLUSTERS, /* -smp clusters= */
|
||||||
QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS, /* -device virtio-mem-pci.dynamic-memslots= */
|
QEMU_CAPS_DEVICE_VIRTIO_MEM_PCI_DYNAMIC_MEMSLOTS, /* -device virtio-mem-pci.dynamic-memslots= */
|
||||||
|
|
||||||
|
/* 455 */
|
||||||
|
QEMU_CAPS_BLOCKJOB_BACKING_MASK_PROTOCOL, /* backing-mask-protocol of block-commit/block-stream */
|
||||||
|
|
||||||
QEMU_CAPS_LAST /* this must always be the last item */
|
QEMU_CAPS_LAST /* this must always be the last item */
|
||||||
} virQEMUCapsFlags;
|
} virQEMUCapsFlags;
|
||||||
|
|
||||||
|
@ -201,6 +201,7 @@
|
|||||||
<flag name='virtio-blk.iothread-mapping'/>
|
<flag name='virtio-blk.iothread-mapping'/>
|
||||||
<flag name='smp-clusters'/>
|
<flag name='smp-clusters'/>
|
||||||
<flag name='virtio-mem-pci.dynamic-memslots'/>
|
<flag name='virtio-mem-pci.dynamic-memslots'/>
|
||||||
|
<flag name='blockjob.backing-mask-protocol'/>
|
||||||
<version>8002050</version>
|
<version>8002050</version>
|
||||||
<microcodeVersion>43100245</microcodeVersion>
|
<microcodeVersion>43100245</microcodeVersion>
|
||||||
<package>v8.2.0-952-g14639717bf</package>
|
<package>v8.2.0-952-g14639717bf</package>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user