render / rpms / libvirt

Forked from rpms/libvirt 11 months ago
Clone
Daniel P. Berrange f29ea2
diff -rup libvirt-0.4.0.orig/src/xend_internal.c libvirt-0.4.0.new/src/xend_internal.c
Daniel P. Berrange f29ea2
--- libvirt-0.4.0.orig/src/xend_internal.c	2007-12-17 18:05:27.000000000 -0500
Daniel P. Berrange f29ea2
+++ libvirt-0.4.0.new/src/xend_internal.c	2008-01-18 21:13:30.000000000 -0500
Daniel P. Berrange f29ea2
@@ -1907,6 +1907,9 @@ sexpr_to_xend_node_info(struct sexpr *ro
Daniel P. Berrange f29ea2
     info->mhz = sexpr_int(root, "node/cpu_mhz");
Daniel P. Berrange f29ea2
     info->nodes = sexpr_int(root, "node/nr_nodes");
Daniel P. Berrange f29ea2
     info->sockets = sexpr_int(root, "node/sockets_per_node");
Daniel P. Berrange f29ea2
+    info->cores = sexpr_int(root, "node/cores_per_socket");
Daniel P. Berrange f29ea2
+    info->threads = sexpr_int(root, "node/threads_per_core");
Daniel P. Berrange f29ea2
+
Daniel P. Berrange f29ea2
     /* Xen 3.2.0 replaces sockets_per_node with 'nr_cpus'.
Daniel P. Berrange f29ea2
      * Old Xen calculated sockets_per_node using its internal
Daniel P. Berrange f29ea2
      * nr_cpus / (nodes*cores*threads), so fake it ourselves
Daniel P. Berrange f29ea2
@@ -1921,8 +1924,6 @@ sexpr_to_xend_node_info(struct sexpr *ro
Daniel P. Berrange f29ea2
         if (info->sockets == 0)
Daniel P. Berrange f29ea2
             info->sockets = 1;
Daniel P. Berrange f29ea2
     }
Daniel P. Berrange f29ea2
-    info->cores = sexpr_int(root, "node/cores_per_socket");
Daniel P. Berrange f29ea2
-    info->threads = sexpr_int(root, "node/threads_per_core");
Daniel P. Berrange f29ea2
     return (0);
Daniel P. Berrange f29ea2
 }
Daniel P. Berrange f29ea2