]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Run 'qmp_capabilities' command at QEMU monitor startup
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Feb 2010 13:45:20 +0000 (13:45 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 16 Feb 2010 14:21:25 +0000 (14:21 +0000)
commit5d72a8944264bef63f490d1bd602fca1aea4be2c
tree64fbddd54e19c42538b4741d0efa171bab7d5115
parentc841a1fa7fdbfb7a6d92aa50812b4b3267b75e29
Run 'qmp_capabilities' command at QEMU monitor startup

When in JSON mode, QEMU requires that 'qmp_capabilities' is run as
the first command in the monitor. This is a no-op when run in the
text mode monitor

* src/qemu/qemu_driver.c: Run capabilities negotiation when
  connecting to the monitor
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
  src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_json.h: Add
  support for the 'qmp_capabilities' command, no-op in text mode.
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h