]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix probing of legacy Xen driver to not leave URI set
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 26 Jul 2013 16:28:02 +0000 (17:28 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 29 Jul 2013 10:28:09 +0000 (11:28 +0100)
commitb7caae92e113a0cc449ff6dc8f9466bd8d836144
tree2160685d2430d98345548ce8755fb6c40bdf009e
parent18398cfde5eae58207c3aee1ba1b5ddc3e574aef
Fix probing of legacy Xen driver to not leave URI set

When the legacy Xen driver probes with a NULL URI, and
finds itself running on Xen, it will set conn->uri. A
little bit later though it checks to see if libxl support
exists, and if so declines the driver. This leaves the
conn->uri set to 'xen:///', so if libxl also declines
it, it prevents probing of the QEMU driver.

Once a driver has set the conn->uri, it must *never*
decline an open request. So we must move the libxl
check earlier

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/xen/xen_driver.c