]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: capabilities: Add QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI
authorPeter Krempa <pkrempa@redhat.com>
Wed, 8 Jul 2020 13:02:47 +0000 (15:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 17 Jul 2020 05:41:20 +0000 (07:41 +0200)
We want to instantiate hostdevs via -blockdev too. Add a separate
capability for them for a clean transition. The new capability will be
enabled when QEMU_CAPS_BLOCKDEV is present once all code is prepared.

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

index b27a5e5c810c31342b01904ca81834aae70d33c7..cc54ad9283527a7d3f5f1d76e5b901e085fbc75b 100644 (file)
@@ -596,6 +596,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
               "intel-iommu.aw-bits",
               "spapr-tpm-proxy",
               "numa.hmat",
+              "blockdev-hostdev-scsi"
     );
 
 
index dac36b33d98bb9f3ee8a687b71374fc1b7fa9ff0..5d08941538c42e8ec31683da2c15e0ef190b331f 100644 (file)
@@ -576,6 +576,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
     QEMU_CAPS_INTEL_IOMMU_AW_BITS, /* intel-iommu.aw-bits */
     QEMU_CAPS_DEVICE_SPAPR_TPM_PROXY, /* -device spapr-tpm-proxy */
     QEMU_CAPS_NUMA_HMAT, /* -numa hmat */
+    QEMU_CAPS_BLOCKDEV_HOSTDEV_SCSI, /* -blockdev used for (i)SCSI hostdevs */
 
     QEMU_CAPS_LAST /* this must always be the last item */
 } virQEMUCapsFlags;