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] Fix the total memory info with xm info command

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [IA64] Fix the total memory info with xm info command
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Apr 2006 10:33:01 +0000
Delivery-date: Thu, 27 Apr 2006 03:44:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 9a915e2828f340234c1cea2a319ca50ff144c8cf
# Parent  ddcd9c2676128136b6994c2e2f90902ddba5393c
[IA64] Fix the total memory info with xm info command

This small patch intends to provide correct total memory info for
control panel and fixed hardcode for that. The total memory info doesn't
include the memory FW used.

Signed-off-by : Zhang Xiantao  <xiantao.zhang@xxxxxxxxx>

diff -r ddcd9c267612 -r 9a915e2828f3 xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Tue Apr 25 22:52:49 2006 -0600
+++ b/xen/arch/ia64/xen/dom0_ops.c      Tue Apr 25 22:55:22 2006 -0600
@@ -19,7 +19,7 @@
 #include <xen/guest_access.h>
 #include <public/sched_ctl.h>
 #include <asm/vmx.h>
-
+extern unsigned long total_pages;
 long arch_do_dom0_op(dom0_op_t *op, GUEST_HANDLE(dom0_op_t) u_dom0_op)
 {
     long ret = 0;
@@ -216,7 +216,7 @@ long arch_do_dom0_op(dom0_op_t *op, GUES
         pi->sockets_per_node = 
             num_online_cpus() / cpus_weight(cpu_core_map[0]);
         pi->nr_nodes         = 1;
-        pi->total_pages      = 99;  // FIXME
+        pi->total_pages      = total_pages; 
         pi->free_pages       = avail_domheap_pages();
         pi->cpu_khz          = local_cpu_data->proc_freq / 1000;
         memset(pi->hw_cap, 0, sizeof(pi->hw_cap));
diff -r ddcd9c267612 -r 9a915e2828f3 xen/arch/ia64/xen/xensetup.c
--- a/xen/arch/ia64/xen/xensetup.c      Tue Apr 25 22:52:49 2006 -0600
+++ b/xen/arch/ia64/xen/xensetup.c      Tue Apr 25 22:55:22 2006 -0600
@@ -30,7 +30,7 @@
  #error "struct shared_info does not not fit in PAGE_SIZE"
 #endif
 
-unsigned long xenheap_phys_end;
+unsigned long xenheap_phys_end, total_pages;
 
 char saved_command_line[COMMAND_LINE_SIZE];
 char dom0_command_line[COMMAND_LINE_SIZE];
@@ -317,6 +317,7 @@ void start_kernel(void)
     printk("System RAM: %luMB (%lukB)\n",
        nr_pages >> (20 - PAGE_SHIFT),
        nr_pages << (PAGE_SHIFT - 10));
+    total_pages = nr_pages;
 
     init_frametable();
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [IA64] Fix the total memory info with xm info command, Xen patchbot -unstable <=