mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: capabilities: Detect support for gluster debug setting
Teach qemu driver to detect whether qemu supports specifying debug level for gluster volumes. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
70c7025d3b
commit
74bbb8c2ec
@ -351,6 +351,8 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
||||
|
||||
"ivshmem-doorbell", /* 240 */
|
||||
"query-qmp-schema",
|
||||
|
||||
"gluster.debug_level", /* 240 */
|
||||
);
|
||||
|
||||
|
||||
@ -1701,7 +1703,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsObjectPropsUSBNECXHCI[] = {
|
||||
|
||||
/* see documentation for virQEMUCapsQMPSchemaGetByPath for the query format */
|
||||
static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] = {
|
||||
{ "bogus/path/to/satisfy/compiler", 0 },
|
||||
{ "blockdev-add/arg-type/options/+gluster/debug-level", QEMU_CAPS_GLUSTER_DEBUG_LEVEL},
|
||||
};
|
||||
|
||||
struct virQEMUCapsObjectTypeProps {
|
||||
|
@ -387,6 +387,9 @@ typedef enum {
|
||||
QEMU_CAPS_DEVICE_IVSHMEM_DOORBELL, /* -device ivshmem-doorbell */
|
||||
QEMU_CAPS_QUERY_QMP_SCHEMA, /* query-qmp-schema command */
|
||||
|
||||
/* 240 */
|
||||
QEMU_CAPS_GLUSTER_DEBUG_LEVEL, /* -drive gluster.debug_level={0..9} */
|
||||
|
||||
QEMU_CAPS_LAST /* this must always be the last item */
|
||||
} virQEMUCapsFlags;
|
||||
|
||||
|
@ -197,6 +197,7 @@
|
||||
<flag name='ivshmem-plain'/>
|
||||
<flag name='ivshmem-doorbell'/>
|
||||
<flag name='query-qmp-schema'/>
|
||||
<flag name='gluster.debug_level'/>
|
||||
<version>2007000</version>
|
||||
<kvmVersion>0</kvmVersion>
|
||||
<package> (v2.7.0)</package>
|
||||
|
Loading…
x
Reference in New Issue
Block a user