]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: Report connect type as Xen
authorJim Fehlig <jfehlig@suse.com>
Fri, 17 May 2013 15:17:03 +0000 (09:17 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 12 Jun 2013 14:42:15 +0000 (08:42 -0600)
Currently, the libxl driver reports a connection type of "xenlight".
To be compatible with the legacy Xen driver, it should return "Xen".

Note: I noticed this while testing the libxl driver on OpenStack.
After switching my Xen compute nodes to use the libxl stack, I
could no longer launch instances on those nodes since
hypervisor_type was reported as "xenlight" instead of "xen".

src/libxl/libxl_driver.c

index 3990354f818af5b21be781ec02fda698290ed1f8..935919b153401df263e5eed0ed8468ecff88b56c 100644 (file)
@@ -1405,7 +1405,7 @@ libxlConnectClose(virConnectPtr conn ATTRIBUTE_UNUSED)
 static const char *
 libxlConnectGetType(virConnectPtr conn ATTRIBUTE_UNUSED)
 {
-    return "xenlight";
+    return "Xen";
 }
 
 static int