]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Only enforce check for YAJL when starting a VM
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 4 Jul 2012 09:44:58 +0000 (10:44 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 20 Jul 2012 19:31:46 +0000 (20:31 +0100)
commit3399875965d773ec71743c6b85d1d3b092351ebd
treea78072958fd4ecae1b7fce3941c724a1f99b594e
parenta56c3470801450de6a5440f4b2fee1305886a0c1
Only enforce check for YAJL when starting a VM

The previous check for YAJL would have many undesirable
consequences, the most important being that it caused the
capabilities XML to lose all <guest> elements. There is
no user visible feedback as to what is wrong in this respect,
merely a syslog message. The empty capabilities causes
libvirtd to then throw away all guest XML configs that are
stored.

This changes the code so that the check for YAJL is only
performed at the time we attempt to spawn a QEMU process

error: Failed to start domain vm-vnc
error: unsupported configuration: this qemu binary requires libvirt to be compiled with yajl

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