提交 b7991c90 编写于 作者: P Peter Krempa

qemu: capabilities: Add capability for the 'flat' argument of 'query-named-block-nodes'

Detect the presence of the flag and make it available internally as
QEMU_CAPS_QMP_QUERY_NAMED_BLOCK_NODES_FLAT.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 78927483
...@@ -564,6 +564,7 @@ VIR_ENUM_IMPL(virQEMUCaps, ...@@ -564,6 +564,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
/* 355 */ /* 355 */
"vhost-user-fs", "vhost-user-fs",
"query-named-block-nodes.flat",
); );
...@@ -1440,6 +1441,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] = { ...@@ -1440,6 +1441,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] = {
{ "blockdev-add/arg-type/+file/$dynamic-auto-read-only", QEMU_CAPS_BLOCK_FILE_AUTO_READONLY_DYNAMIC }, { "blockdev-add/arg-type/+file/$dynamic-auto-read-only", QEMU_CAPS_BLOCK_FILE_AUTO_READONLY_DYNAMIC },
{ "human-monitor-command/$savevm-monitor-nodes", QEMU_CAPS_SAVEVM_MONITOR_NODES }, { "human-monitor-command/$savevm-monitor-nodes", QEMU_CAPS_SAVEVM_MONITOR_NODES },
{ "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 },
}; };
typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps; typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps;
......
...@@ -545,6 +545,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */ ...@@ -545,6 +545,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
/* 355 */ /* 355 */
QEMU_CAPS_DEVICE_VHOST_USER_FS, /* -device vhost-user-fs */ QEMU_CAPS_DEVICE_VHOST_USER_FS, /* -device vhost-user-fs */
QEMU_CAPS_QMP_QUERY_NAMED_BLOCK_NODES_FLAT, /* query-named-block-nodes supports the 'flat' option */
QEMU_CAPS_LAST /* this must always be the last item */ QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags; } virQEMUCapsFlags;
......
...@@ -224,6 +224,7 @@ ...@@ -224,6 +224,7 @@
<flag name='rng-builtin'/> <flag name='rng-builtin'/>
<flag name='virtio-net.failover'/> <flag name='virtio-net.failover'/>
<flag name='vhost-user-fs'/> <flag name='vhost-user-fs'/>
<flag name='query-named-block-nodes.flat'/>
<version>4002050</version> <version>4002050</version>
<kvmVersion>0</kvmVersion> <kvmVersion>0</kvmVersion>
<microcodeVersion>43100241</microcodeVersion> <microcodeVersion>43100241</microcodeVersion>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册