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] [xen-unstable] [IA64] domheap: Introduce xenheap_megabyt

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] domheap: Introduce xenheap_megabytes boot option
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Jan 2008 01:11:17 -0800
Delivery-date: Wed, 23 Jan 2008 01:17:00 -0800
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 Alex Williamson <alex.williamson@xxxxxx>
# Date 1200596743 25200
# Node ID 0c2dc9424a68cb9a54d2494146ef2ad2ce23c186
# Parent  37a3e770a85c75016da901a24951eca6da9a0b8f
[IA64] domheap: Introduce xenheap_megabytes boot option

Now xenheap size isn't limited by DTR mapping. So we can set it larger size.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/xensetup.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+)

diff -r 37a3e770a85c -r 0c2dc9424a68 xen/arch/ia64/xen/xensetup.c
--- a/xen/arch/ia64/xen/xensetup.c      Thu Jan 17 12:05:43 2008 -0700
+++ b/xen/arch/ia64/xen/xensetup.c      Thu Jan 17 12:05:43 2008 -0700
@@ -75,6 +75,24 @@ unsigned long xen_pstart;
 unsigned long xen_pstart;
 void *xen_pickle_offset __read_mostly;
 
+static void __init parse_xenheap_megabytes(char *s)
+{
+    unsigned long megabytes = parse_size_and_unit(s, NULL);
+
+#define XENHEAP_MEGABYTES_MIN   16
+    if (megabytes < XENHEAP_MEGABYTES_MIN)
+        megabytes = XENHEAP_MEGABYTES_MIN;
+
+#define XENHEAP_MEGABYTES_MAX   4096    /* need more? If so,
+                                           __pickle()/__unpickle() must be
+                                           revised. */
+    if (megabytes > XENHEAP_MEGABYTES_MAX)
+        megabytes = XENHEAP_MEGABYTES_MAX;
+
+    xenheap_size =  megabytes * 1024 * 1024;
+}
+custom_param("xenheap_megabytes", parse_xenheap_megabytes);
+
 static int __init
 xen_count_pages(u64 start, u64 end, void *arg)
 {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] domheap: Introduce xenheap_megabytes boot option, Xen patchbot-unstable <=