mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
caps: Add new capability for the bps/iops throttling length
Add the capability to detect if the qemu binary can support the feature to use bps-max-length and friends.
This commit is contained in:
parent
2d3377c3a0
commit
d379552b41
@ -346,6 +346,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
||||
"virtio-net.rx_queue_size", /* 235 */
|
||||
"machine-iommu",
|
||||
"virtio-vga",
|
||||
"drive-iotune-max-length",
|
||||
);
|
||||
|
||||
|
||||
@ -2843,6 +2844,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
|
||||
{ "name", "debug-threads", QEMU_CAPS_NAME_DEBUG_THREADS },
|
||||
{ "name", "guest", QEMU_CAPS_NAME_GUEST },
|
||||
{ "spice", "unix", QEMU_CAPS_SPICE_UNIX },
|
||||
{ "drive", "throttling.bps-total-max-length", QEMU_CAPS_DRIVE_IOTUNE_MAX_LENGTH },
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -380,6 +380,7 @@ typedef enum {
|
||||
QEMU_CAPS_VIRTIO_NET_RX_QUEUE_SIZE, /* virtio-net-*.rx_queue_size */
|
||||
QEMU_CAPS_MACHINE_IOMMU, /* -machine iommu=on */
|
||||
QEMU_CAPS_DEVICE_VIRTIO_VGA, /* -device virtio-vga */
|
||||
QEMU_CAPS_DRIVE_IOTUNE_MAX_LENGTH, /* -drive bps_max_length = and friends */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
@ -158,6 +158,7 @@
|
||||
<flag name='display'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<version>2005094</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<package></package>
|
||||
|
@ -158,6 +158,7 @@
|
||||
<flag name='display'/>
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<version>2005094</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<package></package>
|
||||
|
@ -153,6 +153,7 @@
|
||||
<flag name='smm'/>
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='virtio-vga'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<version>2005094</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<package></package>
|
||||
|
@ -192,6 +192,7 @@
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='machine-iommu'/>
|
||||
<flag name='virtio-vga'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<version>2006000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<package></package>
|
||||
|
@ -193,6 +193,7 @@
|
||||
<flag name='virtio-pci-disable-legacy'/>
|
||||
<flag name='query-hotpluggable-cpus'/>
|
||||
<flag name='virtio-vga'/>
|
||||
<flag name='drive-iotune-max-length'/>
|
||||
<version>2007000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<package> (v2.7.0)</package>
|
||||
|
Loading…
Reference in New Issue
Block a user