[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] [PATCH] dom0_mem support
Hi, This is the first time I posted to this list, so please be gentle... Attached is a small patch that supports dom0_mem parameter at boot option. Usage is the likely same as that of x86. ex. append="dom0_mem=768M ..." Signed-off-by Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx> Thanks, Kan diff -r bd234c9603ce xen/arch/ia64/xen/domain.c --- a/xen/arch/ia64/xen/domain.c Fri Nov 11 19:23:04 2005 +++ b/xen/arch/ia64/xen/domain.c Mon Nov 14 04:27:03 2005 @@ -11,6 +11,7 @@ */ #include <xen/config.h> +#include <xen/init.h> #include <xen/lib.h> #include <xen/errno.h> #include <xen/sched.h> @@ -48,7 +49,7 @@ #define CONFIG_DOMAIN0_CONTIGUOUS unsigned long dom0_start = -1L; -unsigned long dom0_size = 512*1024*1024; //FIXME: Should be configurable +unsigned long dom0_size = 512*1024*1024; //FIXME: alignment should be 256MB, lest Linux use a 256MB page size unsigned long dom0_align = 256*1024*1024; #ifdef DOMU_BUILD_STAGING @@ -1154,3 +1155,17 @@ } // FIXME SMP: Anything else needed here for SMP? } + +static void parse_dom0_mem(char *s) +{ + unsigned long long bytes; + bytes = parse_size_and_unit(s); + dom0_size = bytes; + + if (dom0_size % dom0_align) + { + dom0_size = (dom0_size / dom0_align + 1) * dom0_align; + } +} +custom_param("dom0_mem", parse_dom0_mem); + _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |