]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Disable JSON mode monitor until QEMU is more mature
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Dec 2009 20:49:43 +0000 (20:49 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 22 Dec 2009 11:43:48 +0000 (11:43 +0000)
* src/qemu/qemu_conf.h: Remove QEMU_CMD_FLAG_0_12 and just leave
  the lone JSON flag
* src/qemu/qemu_conf.c: Enable JSON on QEMU 0.13 or later, but
  leave it disabled for now

src/qemu/qemu_conf.c
src/qemu/qemu_conf.h

index 3f6c79b124fe0f334463f95e383c43da065e0a70..f53c1f722fae74e8a234e2682edce8724b2fdb09 100644 (file)
@@ -1146,8 +1146,12 @@ static unsigned int qemudComputeCmdFlags(const char *help,
     if (version >= 10000)
         flags |= QEMUD_CMD_FLAG_0_10;
 
-    if (version >= 12000)
-        flags |= QEMUD_CMD_FLAG_0_12;
+    /* Keep disabled till we're actually ready to turn on JSON mode
+     * The plan is todo it in 0.13.0 QEMU, but lets wait & see... */
+#if 0
+    if (version >= 13000)
+        flags |= QEMUD_CMD_FLAG_MONITOR_JSON;
+#endif
 
     return flags;
 }
index e958850b300ef7c3e8709f36c290ad254b1c580a..209cd31050fe6b5bd813a5bb3e9c79ed44a5f363 100644 (file)
@@ -76,8 +76,7 @@ enum qemud_cmd_flags {
     QEMUD_CMD_FLAG_MIGRATE_QEMU_UNIX = (1 << 21), /* Does qemu support unix domain sockets for migration? */
     QEMUD_CMD_FLAG_CHARDEV       = (1 << 22), /* Is the new -chardev arg available */
     QEMUD_CMD_FLAG_ENABLE_KVM    = (1 << 23), /* Is the -enable-kvm flag available to "enable KVM full virtualization support" */
-    QEMUD_CMD_FLAG_0_12          = (1 << 24),
-    QEMUD_CMD_FLAG_MONITOR_JSON  = QEMUD_CMD_FLAG_0_12, /* JSON mode for monitor */
+    QEMUD_CMD_FLAG_MONITOR_JSON  = (1 << 24), /* JSON mode for monitor */
 };
 
 /* Main driver state */