]> xenbits.xensource.com Git - libvirt.git/commit
Add support for detecting capablities using QMP commands
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 22 Aug 2012 17:05:08 +0000 (18:05 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Sep 2012 15:50:51 +0000 (16:50 +0100)
commit43e23c73af578fd2aacdf6fb46ca94a4017e0fe0
tree47620c85abe7be36b076b1ba9a41c6bb767653cb
parent295bda40da400bea10d997e84780659169bee778
Add support for detecting capablities using QMP commands

Start a QEMU process using

   $QEMU -S -no-user-config -nodefaults \
         -nographic -M none -qmp unix:/some/path,server,nowait

and talk QMP over stdio to discover what capabilities the
binary supports. This works for QEMU 1.2.0 or later and
for older QEMU automatically fallback to the old approach
of parsing -help and related command line args.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_driver.c