ia64/xen-unstable

changeset 19003:95d77829216f

x86: remove pointless dom0 check

This check is redundant with a check a few dozen lines up resulting in
a panic().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 08 11:19:38 2009 +0000 (2009-01-08)
parents b9721b2766c1
children e9cd8e7c3b44
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Wed Jan 07 11:25:00 2009 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Thu Jan 08 11:19:38 2009 +0000
     1.3 @@ -430,14 +430,6 @@ int __init construct_dom0(
     1.4             _p(v_start), _p(v_end));
     1.5      printk(" ENTRY ADDRESS: %p\n", _p(parms.virt_entry));
     1.6  
     1.7 -    if ( ((v_end - v_start)>>PAGE_SHIFT) > nr_pages )
     1.8 -    {
     1.9 -        printk("Initial guest OS requires too much space\n"
    1.10 -               "(%luMB is greater than %luMB limit)\n",
    1.11 -               (v_end-v_start)>>20, nr_pages>>(20-PAGE_SHIFT));
    1.12 -        return -ENOMEM;
    1.13 -    }
    1.14 -
    1.15      mpt_alloc = (vpt_start - v_start) +
    1.16          (unsigned long)pfn_to_paddr(alloc_spfn);
    1.17