]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: support qmp on RHEL/CentOS qemu
authorEric Blake <eblake@redhat.com>
Thu, 26 Jan 2012 04:33:21 +0000 (21:33 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 27 Jan 2012 15:11:19 +0000 (08:11 -0700)
commitff88cd590572277f10ecee4ebb1174d9b70fc0d7
tree5d862514f8ebcf26095f0c092c1abf90f65c4c37
parent823b90339f469986b79634d207846ac0b0cc438a
qemu: support qmp on RHEL/CentOS qemu

I'm getting tired of remembering to backport RHEL-specific
patches when building upstream libvirt on RHEL 6.x or CentOS.
All the affected versions of RHEL qemu-kvm have backported
enough patches to a) make JSON useful, and b) modify the
-help text to mention libvirt as the preferred interface;
which means this string in the help output is a reliable
indicator that we can outsmart a strict version check,
even when upstream qemu 0.12 lacked the needed features.

* src/qemu/qemu_capabilities.c (qemuCapsComputeCmdFlags):
Recognize particular help string present when enough features were
backported to be worth using JSON.
* tests/qemuhelptest.c (mymain): Update tests accordingly.
src/qemu/qemu_capabilities.c
tests/qemuhelptest.c