qemu: Introduce vhost-scsi capability

Do all the stuff for the vhost-scsi capability in QEMU,
so it's in place for our checks later.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
This commit is contained in:
Eric Farman 2016-11-21 22:58:15 -05:00 committed by John Ferlan
parent a42342912b
commit c271fc1f35
13 changed files with 14 additions and 0 deletions

View File

@ -352,6 +352,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
"ivshmem-doorbell", /* 240 */
"query-qmp-schema",
"gluster.debug_level",
"vhost-scsi",
);
@ -1596,6 +1597,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
{ "intel-iommu", QEMU_CAPS_DEVICE_INTEL_IOMMU },
{ "ivshmem-plain", QEMU_CAPS_DEVICE_IVSHMEM_PLAIN },
{ "ivshmem-doorbell", QEMU_CAPS_DEVICE_IVSHMEM_DOORBELL },
{ "vhost-scsi", QEMU_CAPS_DEVICE_VHOST_SCSI },
};
static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsVirtioBalloon[] = {

View File

@ -387,6 +387,7 @@ typedef enum {
QEMU_CAPS_DEVICE_IVSHMEM_DOORBELL, /* -device ivshmem-doorbell */
QEMU_CAPS_QUERY_QMP_SCHEMA, /* query-qmp-schema command */
QEMU_CAPS_GLUSTER_DEBUG_LEVEL, /* -drive gluster.debug_level={0..9} */
QEMU_CAPS_DEVICE_VHOST_SCSI, /* -device vhost-scsi-{ccw,pci} */
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;

View File

@ -139,6 +139,7 @@
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
<flag name='display'/>
<flag name='vhost-scsi'/>
<version>1005003</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -144,6 +144,7 @@
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
<flag name='display'/>
<flag name='vhost-scsi'/>
<version>1006000</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -146,6 +146,7 @@
<flag name='device-tray-moved-event'/>
<flag name='nec-usb-xhci-ports'/>
<flag name='display'/>
<flag name='vhost-scsi'/>
<version>1007000</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -161,6 +161,7 @@
<flag name='name-guest'/>
<flag name='drive-detect-zeroes'/>
<flag name='display'/>
<flag name='vhost-scsi'/>
<version>2001001</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -181,6 +181,7 @@
<flag name='virtio-pci-disable-legacy'/>
<flag name='machine-iommu'/>
<flag name='virtio-vga'/>
<flag name='vhost-scsi'/>
<version>2004000</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -187,6 +187,7 @@
<flag name='machine-iommu'/>
<flag name='virtio-vga'/>
<flag name='query-qmp-schema'/>
<flag name='vhost-scsi'/>
<version>2005000</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -162,6 +162,7 @@
<flag name='ivshmem-plain'/>
<flag name='ivshmem-doorbell'/>
<flag name='query-qmp-schema'/>
<flag name='vhost-scsi'/>
<version>2006000</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -162,6 +162,7 @@
<flag name='ivshmem-plain'/>
<flag name='ivshmem-doorbell'/>
<flag name='query-qmp-schema'/>
<flag name='vhost-scsi'/>
<version>2005094</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -159,6 +159,7 @@
<flag name='ivshmem-plain'/>
<flag name='ivshmem-doorbell'/>
<flag name='query-qmp-schema'/>
<flag name='vhost-scsi'/>
<version>2006000</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -196,6 +196,7 @@
<flag name='ivshmem-plain'/>
<flag name='ivshmem-doorbell'/>
<flag name='query-qmp-schema'/>
<flag name='vhost-scsi'/>
<version>2006000</version>
<kvmVersion>0</kvmVersion>
<package></package>

View File

@ -198,6 +198,7 @@
<flag name='ivshmem-doorbell'/>
<flag name='query-qmp-schema'/>
<flag name='gluster.debug_level'/>
<flag name='vhost-scsi'/>
<version>2007000</version>
<kvmVersion>0</kvmVersion>
<package> (v2.7.0)</package>