]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: capabilities: Unconditionally set QEMU_CAPS_BLOCKDEV/QEMU_CAPS_BLOCKDEV_HOSTDEV...
authorPeter Krempa <pkrempa@redhat.com>
Fri, 15 Jul 2022 14:58:34 +0000 (16:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Aug 2022 12:38:31 +0000 (14:38 +0200)
commit9b54efb7cf5c4f28ece9fed59ef711e2958f7854
tree009c39305ba0d5e2282a2e38e0b5ff9207ff7d90
parent78ad796a4399f09235631e1f185f747b0c7f7795
qemu: capabilities: Unconditionally set QEMU_CAPS_BLOCKDEV/QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI

The cleanup of the code to always assume support for QEMU_CAPS_BLOCKDEV
will not be simple, so for now we hardcode the support and the code will
be cleaned up gradually.

We also disallow users to clear the flags via the namespace property or
qemu.conf configuration.

The change to the PPC64 test data originates from the fact that the
capability dump is not from the release version but is lacking one of
the necessary flags to enable -blockdev.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_process.c
tests/domaincapsdata/qemu_4.2.0.ppc64.xml
tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml