direct-io.hg

changeset 13385:887168cf7532

Remove bogus sanity check from xc_linux_save.

(a guest from another host (or an earlier time) can quite validly have
a max_mfn bigger the current max on this host)

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Mon Jan 15 18:09:16 2007 +0000 (2007-01-15)
parents 72b977953aaf
children 895d873a00b4
files tools/libxc/xc_linux_save.c
line diff
     1.1 --- a/tools/libxc/xc_linux_save.c	Mon Jan 15 18:07:32 2007 +0000
     1.2 +++ b/tools/libxc/xc_linux_save.c	Mon Jan 15 18:09:16 2007 +0000
     1.3 @@ -660,13 +660,6 @@ int xc_linux_save(int xc_handle, int io_
     1.4          goto out;
     1.5      }
     1.6  
     1.7 -   /* cheesy sanity check */
     1.8 -    if ((info.max_memkb >> (PAGE_SHIFT - 10)) > max_mfn) {
     1.9 -        ERROR("Invalid state record -- pfn count out of range: %lu",
    1.10 -            (info.max_memkb >> (PAGE_SHIFT - 10)));
    1.11 -        goto out;
    1.12 -     }
    1.13 -
    1.14      /* Map the shared info frame */
    1.15      if(!(live_shinfo = xc_map_foreign_range(xc_handle, dom, PAGE_SIZE,
    1.16                                              PROT_READ, shared_info_frame))) {