]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: don't attempt to probe a non-existent emulator
authorJim Fehlig <jfehlig@suse.com>
Thu, 12 May 2016 20:40:28 +0000 (14:40 -0600)
committerJim Fehlig <jfehlig@suse.com>
Fri, 13 May 2016 16:08:34 +0000 (10:08 -0600)
commit400e716d7d8371fa718c27bb4f05b9a68929e64a
treed88623872477df4086ddb39c2dabf080de3daa9b
parent3902f634bf32f9e7a98fd7cfb7910ccef5021fb5
libxl: don't attempt to probe a non-existent emulator

When probing the <emulator> with '-help' to determine if
it is the old qemu, errors are reported if the emulator
doesn't exist

libvirt:  error : internal error: Child process
(/usr/lib/xen/bin/qemu-dm -help) unexpected exit status 127:
libvirt:  error : cannot execute binary /usr/lib/xen/bin/qemu-dm:
No such file or directory

Avoid the probe if the specified emulator doesn't exist,
squelching the error. There is no behavior change since
libxlDomainGetEmulatorType() would return
LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN if the probe failed
via virCommandRun().

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_conf.c