mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu_capabilities: Introduce QEMU_CAPS_AIO_IO_URING
Add io_uring value to capability replies. The capability QEMU_CAPS_AIO_IO_URING will be used for io_uring aio mode, introduced from QEMU 5.0, linux 5.1. Signed-off-by: Han Han <hhan@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
bef10f6eaa
commit
cbdd6c4df4
@ -573,6 +573,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
|||||||
"fsdev.multidevs",
|
"fsdev.multidevs",
|
||||||
"virtio.packed",
|
"virtio.packed",
|
||||||
"pcie-root-port.hotplug",
|
"pcie-root-port.hotplug",
|
||||||
|
"aio.io_uring",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -1461,6 +1462,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] = {
|
|||||||
{ "blockdev-add/arg-type/+nvme", QEMU_CAPS_DRIVE_NVME },
|
{ "blockdev-add/arg-type/+nvme", QEMU_CAPS_DRIVE_NVME },
|
||||||
{ "query-named-block-nodes/arg-type/flat", QEMU_CAPS_QMP_QUERY_NAMED_BLOCK_NODES_FLAT },
|
{ "query-named-block-nodes/arg-type/flat", QEMU_CAPS_QMP_QUERY_NAMED_BLOCK_NODES_FLAT },
|
||||||
{ "blockdev-snapshot/$allow-write-only-overlay", QEMU_CAPS_BLOCKDEV_SNAPSHOT_ALLOW_WRITE_ONLY },
|
{ "blockdev-snapshot/$allow-write-only-overlay", QEMU_CAPS_BLOCKDEV_SNAPSHOT_ALLOW_WRITE_ONLY },
|
||||||
|
{ "blockdev-add/arg-type/+file/aio/^io_uring", QEMU_CAPS_AIO_IO_URING },
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps;
|
typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps;
|
||||||
|
@ -554,6 +554,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
|||||||
QEMU_CAPS_FSDEV_MULTIDEVS, /* fsdev.multidevs */
|
QEMU_CAPS_FSDEV_MULTIDEVS, /* fsdev.multidevs */
|
||||||
QEMU_CAPS_VIRTIO_PACKED_QUEUES, /* virtio.packed */
|
QEMU_CAPS_VIRTIO_PACKED_QUEUES, /* virtio.packed */
|
||||||
QEMU_CAPS_PCIE_ROOT_PORT_HOTPLUG, /* pcie-root-port.hotplug */
|
QEMU_CAPS_PCIE_ROOT_PORT_HOTPLUG, /* pcie-root-port.hotplug */
|
||||||
|
QEMU_CAPS_AIO_IO_URING, /* -blockdev {...,"aio":"io_uring",...} */
|
||||||
|
|
||||||
QEMU_CAPS_LAST /* this must always be the last item */
|
QEMU_CAPS_LAST /* this must always be the last item */
|
||||||
} virQEMUCapsFlags;
|
} virQEMUCapsFlags;
|
||||||
|
@ -230,6 +230,7 @@
|
|||||||
<flag name='fsdev.multidevs'/>
|
<flag name='fsdev.multidevs'/>
|
||||||
<flag name='virtio.packed'/>
|
<flag name='virtio.packed'/>
|
||||||
<flag name='pcie-root-port.hotplug'/>
|
<flag name='pcie-root-port.hotplug'/>
|
||||||
|
<flag name='aio.io_uring'/>
|
||||||
<version>4002093</version>
|
<version>4002093</version>
|
||||||
<kvmVersion>0</kvmVersion>
|
<kvmVersion>0</kvmVersion>
|
||||||
<microcodeVersion>43100241</microcodeVersion>
|
<microcodeVersion>43100241</microcodeVersion>
|
||||||
|
Loading…
Reference in New Issue
Block a user