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