ia64/xen-unstable

changeset 3943:fd0c24d9b4de

bitkeeper revision 1.1236.1.32 (4220bdfe_g8imkJtGDR6Xv_2hEHwOQ)

DOM0 has no mem reservation limit.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@viper.(none)
date Sat Feb 26 18:20:46 2005 +0000 (2005-02-26)
parents 99fd3686e9b3
children 568708aa650c
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Sat Feb 26 18:19:26 2005 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Sat Feb 26 18:20:46 2005 +0000
     1.3 @@ -113,11 +113,11 @@ int construct_dom0(struct domain *d,
     1.4      printk("*** LOADING DOMAIN 0 ***\n");
     1.5  
     1.6      /* By default DOM0 is allocated all available memory. */
     1.7 +    d->max_pages = ~0U;
     1.8      if ( (nr_pages = opt_dom0_mem >> (PAGE_SHIFT - 10)) == 0 )
     1.9          nr_pages = avail_domheap_pages() +
    1.10              ((initrd_len + PAGE_SIZE - 1) >> PAGE_SHIFT) +
    1.11              ((image_len  + PAGE_SIZE - 1) >> PAGE_SHIFT);
    1.12 -    d->max_pages = nr_pages;
    1.13      if ( (page = alloc_largest(d, nr_pages)) == NULL )
    1.14          panic("Not enough RAM for DOM0 reservation.\n");
    1.15      alloc_start = page_to_phys(page);