1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

qemu: capabilities: Probe caps for 'scsi-hd' instead of 'scsi-disk'

Since commit 02e8d0cfdf we are using 'scsi-hd' and 'scsi-cd' instead of
'scsi-disk'. We also should probe capabilities for 'scsi-hd' instead of
'scsi-disk'. It is safe to do as 'scsi-disk' is the common denominator
of both 'scsi-hd' and 'scsi-cd' so all the properties were common.

For now the test data are modified by just changing the appropriate type
when probing for caps.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2019-01-28 10:03:25 +01:00
parent aedd20386d
commit 7d114e1b72
37 changed files with 37 additions and 37 deletions

View File

@ -1299,7 +1299,7 @@ static virQEMUCapsObjectTypeProps virQEMUCapsDeviceProps[] = {
{ "vfio-pci", virQEMUCapsDevicePropsVfioPCI,
ARRAY_CARDINALITY(virQEMUCapsDevicePropsVfioPCI),
QEMU_CAPS_DEVICE_VFIO_PCI },
{ "scsi-disk", virQEMUCapsDevicePropsSCSIDisk,
{ "scsi-hd", virQEMUCapsDevicePropsSCSIDisk,
ARRAY_CARDINALITY(virQEMUCapsDevicePropsSCSIDisk),
-1 },
{ "ide-drive", virQEMUCapsDevicePropsIDEDrive,

View File

@ -1465,7 +1465,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -1494,7 +1494,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -1503,7 +1503,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -1770,7 +1770,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -4066,7 +4066,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -4167,7 +4167,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2813,7 +2813,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -3044,7 +3044,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2867,7 +2867,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -3046,7 +3046,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -4388,7 +4388,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -4377,7 +4377,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2951,7 +2951,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -3235,7 +3235,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2072,7 +2072,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -2169,7 +2169,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2932,7 +2932,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -3082,7 +3082,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2251,7 +2251,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2079,7 +2079,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -2320,7 +2320,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2342,7 +2342,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -2435,7 +2435,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -3426,7 +3426,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2528,7 +2528,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -2616,7 +2616,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -4460,7 +4460,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -1299,7 +1299,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-14"
}

View File

@ -1299,7 +1299,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-14"
}

View File

@ -3028,7 +3028,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-16"
}

View File

@ -3305,7 +3305,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -4493,7 +4493,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -3338,7 +3338,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2793,7 +2793,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -2793,7 +2793,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}

View File

@ -3481,7 +3481,7 @@
{
"execute": "device-list-properties",
"arguments": {
"typename": "scsi-disk"
"typename": "scsi-hd"
},
"id": "libvirt-15"
}