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-ia64-devel

[Xen-ia64-devel] [PATCH 15/16] domheap: introduce xenheap_megabytes boot

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 15/16] domheap: introduce xenheap_megabytes boot option.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 7 Jan 2008 16:52:34 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Sun, 06 Jan 2008 23:56:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1198815094 -32400
# Node ID 70146eb02f8aa77424e5a5e9471fd223ba21b6af
# Parent  c5d178b2c54fb2dda200a1abb0bf49671378bd02
introduce xenheap_megabytes boot option.
Now xenheap size isn't limited by DTR mapping. So we can set it larger size.
PATCHNAME: xenheap_megabytes

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r c5d178b2c54f -r 70146eb02f8a xen/arch/ia64/xen/xensetup.c
--- a/xen/arch/ia64/xen/xensetup.c      Wed Dec 26 16:42:19 2007 +0900
+++ b/xen/arch/ia64/xen/xensetup.c      Fri Dec 28 13:11:34 2007 +0900
@@ -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)
 {

Attachment: 16709_70146eb02f8a_xenheap_megabytes.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH 15/16] domheap: introduce xenheap_megabytes boot option., Isaku Yamahata <=