mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
qemu: probe for "acpi-index" property
This property is exposed by QEMU on any PCI device, but we have to pick some specific device(s) to probe it against. We expect that at least one of the virtio devices will be present, so probe against them. Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
b7bef84395
commit
1b80c6f0d0
@ -628,6 +628,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
|
||||
/* 400 */
|
||||
"compat-deprecated",
|
||||
"acpi-index",
|
||||
);
|
||||
|
||||
|
||||
@ -1366,6 +1367,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioBalloon[]
|
||||
{ "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
{ "free-page-reporting", QEMU_CAPS_VIRTIO_BALLOON_FREE_PAGE_REPORTING, NULL },
|
||||
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
|
||||
};
|
||||
|
||||
|
||||
@ -1398,6 +1400,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioBlk[] = {
|
||||
{ "write-cache", QEMU_CAPS_DISK_WRITE_CACHE, NULL },
|
||||
{ "werror", QEMU_CAPS_STORAGE_WERROR, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioNet[] = {
|
||||
@ -1411,6 +1414,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioNet[] = {
|
||||
{ "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
|
||||
{ "failover", QEMU_CAPS_VIRTIO_NET_FAILOVER, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsPCIeRootPort[] = {
|
||||
@ -1431,6 +1435,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioSCSI[] = {
|
||||
{ "iommu_platform", QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM, NULL },
|
||||
{ "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVfioPCI[] = {
|
||||
@ -1502,6 +1507,7 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioGpu[] = {
|
||||
{ "iommu_platform", QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM, NULL },
|
||||
{ "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
|
||||
};
|
||||
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsICH9[] = {
|
||||
|
@ -608,6 +608,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
|
||||
/* 400 */
|
||||
QEMU_CAPS_COMPAT_DEPRECATED, /* -compat deprecated-(input|output) is supported */
|
||||
QEMU_CAPS_ACPI_INDEX, /* PCI device 'acpi-index' property */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
@ -262,6 +262,7 @@
|
||||
<flag name='object.qapified'/>
|
||||
<flag name='rotation-rate'/>
|
||||
<flag name='compat-deprecated'/>
|
||||
<flag name='acpi-index'/>
|
||||
<version>5002092</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<microcodeVersion>43100242</microcodeVersion>
|
||||
|
Loading…
Reference in New Issue
Block a user