[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Add (incomplete) dom0_physinfo call to try with xm list and xen-bugtool



# HG changeset patch
# User djm@xxxxxxxxxxxxxxx
# Node ID 2e74bab1981ef3514cc7475bf38dd2f5a843ed3d
# Parent  0944ee3565344d558451095540b554dc4718fef7
Add (incomplete) dom0_physinfo call to try with xm list and xen-bugtool

diff -r 0944ee356534 -r 2e74bab1981e xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Wed Nov 30 22:17:53 2005
+++ b/xen/arch/ia64/xen/dom0_ops.c      Wed Nov 30 23:04:48 2005
@@ -194,7 +194,29 @@
         }
     }
     break;
+
+    case DOM0_PHYSINFO:
+    {
+        dom0_physinfo_t *pi = &op->u.physinfo;
+
+        pi->threads_per_core = smp_num_siblings;
+        pi->cores_per_socket = 1; // FIXME
+        pi->sockets_per_node = 
+            num_online_cpus() / (pi->threads_per_core * pi->cores_per_socket);
+        pi->nr_nodes         = 1;
+        pi->total_pages      = 99;  // FIXME
+        pi->free_pages       = avail_domheap_pages();
+        pi->cpu_khz          = 100;  // FIXME cpu_khz;
+        memset(pi->hw_cap, 0, sizeof(pi->hw_cap));
+        //memcpy(pi->hw_cap, boot_cpu_data.x86_capability, NCAPINTS*4);
+        ret = 0;
+        if ( copy_to_user(u_dom0_op, op, sizeof(*op)) )
+           ret = -EFAULT;
+    }
+    break;
+
     default:
+printf("arch_do_dom0_op: unrecognized dom0 op: %d!!!\n",op->cmd);
         ret = -ENOSYS;
 
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.