direct-io.hg

changeset 13968:8f75c7910b9c

Remove unnecessary check from HVM builder.
Thanks to Guy Zana for spotting this.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Feb 15 14:38:08 2007 +0000 (2007-02-15)
parents 9ffe8922414f
children 5916fc1f9b16
files tools/libxc/xc_hvm_build.c
line diff
     1.1 --- a/tools/libxc/xc_hvm_build.c	Thu Feb 15 14:28:01 2007 +0000
     1.2 +++ b/tools/libxc/xc_hvm_build.c	Thu Feb 15 14:38:08 2007 +0000
     1.3 @@ -214,15 +214,6 @@ static int setup_guest(int xc_handle,
     1.4              v_start, v_end,
     1.5              elf_uval(&elf, elf.ehdr, e_entry));
     1.6  
     1.7 -    if ( (v_end - v_start) > ((unsigned long long)nr_pages << PAGE_SHIFT) )
     1.8 -    {
     1.9 -        PERROR("Initial guest OS requires too much space: "
    1.10 -               "(%lluMB is greater than %lluMB limit)\n",
    1.11 -               (unsigned long long)(v_end - v_start) >> 20,
    1.12 -               ((unsigned long long)nr_pages << PAGE_SHIFT) >> 20);
    1.13 -        goto error_out;
    1.14 -    }
    1.15 -
    1.16      if ( (page_array = malloc(nr_pages * sizeof(xen_pfn_t))) == NULL )
    1.17      {
    1.18          PERROR("Could not allocate memory.\n");