mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemu: capabilities: Retire QEMU_CAPS_VIRTIO_PCI_ATS
The capability reflects whether QEMU is capable of -device virtio-*,ats=. Since the property was introduced in QEMU commit v2.9.0-rc0~162^2~32 we can safely assume the property is always present as the minimal version required is 2.11.0. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8607dc3706
commit
0cddf1978c
@ -431,7 +431,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
||||
"virtio.iommu_platform", /* X_QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM */
|
||||
|
||||
/* 260 */
|
||||
"virtio.ats", /* QEMU_CAPS_VIRTIO_PCI_ATS */
|
||||
"virtio.ats", /* X_QEMU_CAPS_VIRTIO_PCI_ATS */
|
||||
"loadparm", /* QEMU_CAPS_LOADPARM */
|
||||
"spapr-pci-host-bridge", /* QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE */
|
||||
"spapr-pci-host-bridge.numa_node", /* QEMU_CAPS_SPAPR_PCI_HOST_BRIDGE_NUMA_NODE */
|
||||
@ -1378,7 +1378,6 @@ struct virQEMUCapsDevicePropsFlags {
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioBalloon[] = {
|
||||
{ "deflate-on-oom", QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE, NULL },
|
||||
{ "disable-legacy", QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, NULL },
|
||||
{ "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 },
|
||||
@ -1408,7 +1407,6 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioBlk[] = {
|
||||
{ "queue-size", QEMU_CAPS_VIRTIO_BLK_QUEUE_SIZE, NULL },
|
||||
{ "share-rw", QEMU_CAPS_DISK_SHARE_RW, NULL },
|
||||
{ "disable-legacy", QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, NULL },
|
||||
{ "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
|
||||
{ "write-cache", QEMU_CAPS_DISK_WRITE_CACHE, NULL },
|
||||
{ "werror", QEMU_CAPS_STORAGE_WERROR, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
@ -1421,7 +1419,6 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioNet[] = {
|
||||
{ "tx_queue_size", QEMU_CAPS_VIRTIO_NET_TX_QUEUE_SIZE, NULL },
|
||||
{ "host_mtu", QEMU_CAPS_VIRTIO_NET_HOST_MTU, NULL },
|
||||
{ "disable-legacy", QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, NULL },
|
||||
{ "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 },
|
||||
@ -1442,7 +1439,6 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsSpaprPCIHostBrid
|
||||
static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioSCSI[] = {
|
||||
{ "iothread", QEMU_CAPS_VIRTIO_SCSI_IOTHREAD, NULL },
|
||||
{ "disable-legacy", QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, NULL },
|
||||
{ "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
|
||||
};
|
||||
@ -1514,7 +1510,6 @@ static struct virQEMUCapsDevicePropsFlags virQEMUCapsDevicePropsVirtioGpu[] = {
|
||||
{ "virgl", QEMU_CAPS_VIRTIO_GPU_VIRGL, NULL },
|
||||
{ "max_outputs", QEMU_CAPS_VIRTIO_GPU_MAX_OUTPUTS, NULL },
|
||||
{ "disable-legacy", QEMU_CAPS_VIRTIO_PCI_DISABLE_LEGACY, NULL },
|
||||
{ "ats", QEMU_CAPS_VIRTIO_PCI_ATS, NULL },
|
||||
{ "packed", QEMU_CAPS_VIRTIO_PACKED_QUEUES, NULL },
|
||||
{ "acpi-index", QEMU_CAPS_ACPI_INDEX, NULL },
|
||||
};
|
||||
|
@ -411,7 +411,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
||||
X_QEMU_CAPS_VIRTIO_PCI_IOMMU_PLATFORM, /* virtio-*-pci.iommu_platform */
|
||||
|
||||
/* 260 */
|
||||
QEMU_CAPS_VIRTIO_PCI_ATS, /* virtio-*-pci.ats */
|
||||
X_QEMU_CAPS_VIRTIO_PCI_ATS, /* virtio-*-pci.ats */
|
||||
QEMU_CAPS_LOADPARM, /* -machine loadparm */
|
||||
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE, /* -device spapr-pci-host-bridge */
|
||||
QEMU_CAPS_SPAPR_PCI_HOST_BRIDGE_NUMA_NODE, /* spapr-pci-host-bridge.numa_node= */
|
||||
|
@ -1569,14 +1569,6 @@ qemuValidateDomainVirtioOptions(const virDomainVirtioOptions *virtio,
|
||||
if (!virtio)
|
||||
return 0;
|
||||
|
||||
if (virtio->ats != VIR_TRISTATE_SWITCH_ABSENT &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_PCI_ATS)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("the ats setting is not supported with this "
|
||||
"QEMU binary"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (virtio->packed != VIR_TRISTATE_SWITCH_ABSENT &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_PACKED_QUEUES)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
|
@ -59,7 +59,6 @@
|
||||
<flag name='query-cpu-definitions'/>
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='loadparm'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
|
@ -132,7 +132,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -94,7 +94,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -88,7 +88,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='spapr-pci-host-bridge'/>
|
||||
<flag name='spapr-pci-host-bridge.numa_node'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
|
@ -59,7 +59,6 @@
|
||||
<flag name='query-cpu-definitions'/>
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='loadparm'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
|
@ -129,7 +129,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -87,7 +87,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='spapr-pci-host-bridge'/>
|
||||
<flag name='spapr-pci-host-bridge.numa_node'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
|
@ -61,7 +61,6 @@
|
||||
<flag name='query-cpu-definitions'/>
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='loadparm'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
|
@ -131,7 +131,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -88,7 +88,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='spapr-pci-host-bridge'/>
|
||||
<flag name='spapr-pci-host-bridge.numa_node'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
|
@ -131,7 +131,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -96,7 +96,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -94,7 +94,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='spapr-pci-host-bridge'/>
|
||||
<flag name='spapr-pci-host-bridge.numa_node'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
|
@ -100,7 +100,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -100,7 +100,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -61,7 +61,6 @@
|
||||
<flag name='query-cpu-definitions'/>
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='loadparm'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
|
@ -130,7 +130,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -130,7 +130,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -98,7 +98,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -94,7 +94,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='spapr-pci-host-bridge'/>
|
||||
<flag name='spapr-pci-host-bridge.numa_node'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
|
@ -61,7 +61,6 @@
|
||||
<flag name='query-cpu-definitions'/>
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='loadparm'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
|
@ -131,7 +131,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -100,7 +100,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -96,7 +96,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='spapr-pci-host-bridge'/>
|
||||
<flag name='spapr-pci-host-bridge.numa_node'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
|
@ -100,7 +100,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -131,7 +131,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -131,7 +131,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -100,7 +100,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -95,7 +95,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='spapr-pci-host-bridge'/>
|
||||
<flag name='spapr-pci-host-bridge.numa_node'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
|
@ -99,7 +99,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -60,7 +60,6 @@
|
||||
<flag name='query-cpu-definitions'/>
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='loadparm'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
|
@ -131,7 +131,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -101,7 +101,6 @@
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='qemu-xhci'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -60,7 +60,6 @@
|
||||
<flag name='query-cpu-definitions'/>
|
||||
<flag name='block-write-threshold'/>
|
||||
<flag name='query-named-block-nodes'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='loadparm'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
|
@ -130,7 +130,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -129,7 +129,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
@ -129,7 +129,6 @@
|
||||
<flag name='intel-iommu.caching-mode'/>
|
||||
<flag name='intel-iommu.eim'/>
|
||||
<flag name='intel-iommu.device-iotlb'/>
|
||||
<flag name='virtio.ats'/>
|
||||
<flag name='virtio-net.tx_queue_size'/>
|
||||
<flag name='chardev-reconnect'/>
|
||||
<flag name='virtio-gpu.max_outputs'/>
|
||||
|
Loading…
Reference in New Issue
Block a user