ia64/xen-unstable

changeset 16789:0c2dc9424a68

[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@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Jan 17 12:05:43 2008 -0700 (2008-01-17)
parents 37a3e770a85c
children bba0419a05f1
files xen/arch/ia64/xen/xensetup.c
line diff
     1.1 --- a/xen/arch/ia64/xen/xensetup.c	Thu Jan 17 12:05:43 2008 -0700
     1.2 +++ b/xen/arch/ia64/xen/xensetup.c	Thu Jan 17 12:05:43 2008 -0700
     1.3 @@ -75,6 +75,24 @@ unsigned long xenheap_size = XENHEAP_DEF
     1.4  unsigned long xen_pstart;
     1.5  void *xen_pickle_offset __read_mostly;
     1.6  
     1.7 +static void __init parse_xenheap_megabytes(char *s)
     1.8 +{
     1.9 +    unsigned long megabytes = parse_size_and_unit(s, NULL);
    1.10 +
    1.11 +#define XENHEAP_MEGABYTES_MIN   16
    1.12 +    if (megabytes < XENHEAP_MEGABYTES_MIN)
    1.13 +        megabytes = XENHEAP_MEGABYTES_MIN;
    1.14 +
    1.15 +#define XENHEAP_MEGABYTES_MAX   4096    /* need more? If so,
    1.16 +                                           __pickle()/__unpickle() must be
    1.17 +                                           revised. */
    1.18 +    if (megabytes > XENHEAP_MEGABYTES_MAX)
    1.19 +        megabytes = XENHEAP_MEGABYTES_MAX;
    1.20 +
    1.21 +    xenheap_size =  megabytes * 1024 * 1024;
    1.22 +}
    1.23 +custom_param("xenheap_megabytes", parse_xenheap_megabytes);
    1.24 +
    1.25  static int __init
    1.26  xen_count_pages(u64 start, u64 end, void *arg)
    1.27  {