WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [IA64] Fixed DOM0_PHYSINFO

# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 71e0c2ed44478fddb4773fa347ceab365292e004
# Parent  cc94ab1e0de09c9cb557492719de1fac3a3fbf10
[IA64] Fixed DOM0_PHYSINFO

This patch fixed the DOM0_PHYSINFO hypercall.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

diff -r cc94ab1e0de0 -r 71e0c2ed4447 xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Thu Apr 06 15:51:59 2006 -0600
+++ b/xen/arch/ia64/xen/dom0_ops.c      Fri Apr 07 11:35:29 2006 -0600
@@ -209,14 +209,16 @@ long arch_do_dom0_op(dom0_op_t *op, GUES
     {
         dom0_physinfo_t *pi = &op->u.physinfo;
 
-        pi->threads_per_core = smp_num_siblings;
-        pi->cores_per_socket = 1; // FIXME
+        pi->threads_per_core =
+            cpus_weight(cpu_sibling_map[0]);
+        pi->cores_per_socket =
+            cpus_weight(cpu_core_map[0]) / pi->threads_per_core;
         pi->sockets_per_node = 
-            num_online_cpus() / (pi->threads_per_core * pi->cores_per_socket);
+            num_online_cpus() / cpus_weight(cpu_core_map[0]);
         pi->nr_nodes         = 1;
         pi->total_pages      = 99;  // FIXME
         pi->free_pages       = avail_domheap_pages();
-        pi->cpu_khz          = 100;  // FIXME cpu_khz;
+        pi->cpu_khz          = local_cpu_data->proc_freq / 1000;
         memset(pi->hw_cap, 0, sizeof(pi->hw_cap));
         //memcpy(pi->hw_cap, boot_cpu_data.x86_capability, NCAPINTS*4);
         ret = 0;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] Fixed DOM0_PHYSINFO, Xen patchbot -unstable <=