x86: remove pointless dom0 check
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 8 Jan 2009 11:19:38 +0000 (11:19 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 8 Jan 2009 11:19:38 +0000 (11:19 +0000)
This check is redundant with a check a few dozen lines up resulting in
a panic().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/domain_build.c

index 1c140c57999e2aa6430b2697d9f91c47ab5b20d0..c8b64357b33b5eb36f0ba790f55f2351f4c8eb2c 100644 (file)
@@ -430,14 +430,6 @@ int __init construct_dom0(
            _p(v_start), _p(v_end));
     printk(" ENTRY ADDRESS: %p\n", _p(parms.virt_entry));
 
-    if ( ((v_end - v_start)>>PAGE_SHIFT) > nr_pages )
-    {
-        printk("Initial guest OS requires too much space\n"
-               "(%luMB is greater than %luMB limit)\n",
-               (v_end-v_start)>>20, nr_pages>>(20-PAGE_SHIFT));
-        return -ENOMEM;
-    }
-
     mpt_alloc = (vpt_start - v_start) +
         (unsigned long)pfn_to_paddr(alloc_spfn);