render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Daniel P. Berrange a05e64
diff -rup libvirt-0.2.2/src/xen_unified.c libvirt-0.2.2.new/src/xen_unified.c
Daniel P. Berrange a05e64
--- libvirt-0.2.2/src/xen_unified.c	2007-04-17 04:38:52.000000000 -0400
Daniel P. Berrange a05e64
+++ libvirt-0.2.2.new/src/xen_unified.c	2007-05-01 16:49:54.000000000 -0400
Daniel P. Berrange a05e64
@@ -112,6 +112,11 @@ xenUnifiedOpen (virConnectPtr conn, cons
Daniel P. Berrange a05e64
     for (i = 0; i < nb_drivers; ++i) {
Daniel P. Berrange a05e64
         int failed_to_open = 1;
Daniel P. Berrange a05e64
 
Daniel P. Berrange a05e64
+        /* Only use XM driver for Xen <= 3.0.3 (ie xendConfigVersion <= 2) */
Daniel P. Berrange a05e64
+        if (drivers[i] == &xenXMDriver &&
Daniel P. Berrange a05e64
+            priv->xendConfigVersion > 2)
Daniel P. Berrange a05e64
+            continue;
Daniel P. Berrange a05e64
+
Daniel P. Berrange a05e64
         /* Ignore proxy for root */
Daniel P. Berrange a05e64
         if (i == proxy_offset && getuid() == 0)
Daniel P. Berrange a05e64
             continue;