]> xenbits.xensource.com Git - libvirt.git/commit
Add check for binary existing in machine type probe
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 2 Feb 2011 12:35:31 +0000 (12:35 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 9 Feb 2011 16:45:31 +0000 (16:45 +0000)
commitbf6a3825b5c4feb198881fbc3413a1e34ea298a4
tree2e27815fb2ef4d8c1ac5b3319db0d0b7ba00ec79
parent2222bd245979a85bcea1a39e8bb0baa1f88af035
Add check for binary existing in machine type probe

When probing machine types if the QEMU binary does not exist
we get a hard to diagnose error, due to the execve() in the
child failing

error: internal error Child process exited with status 1.

Add an explicit check so that we get

error: Cannot find QEMU binary /usr/libexec/qem3u-kvm: No such file or directory

* src/qemu/qemu_capabilities.c: Check for QEMU binary
src/qemu/qemu_capabilities.c