Remove bogus sanity check from xc_linux_save.
authorSteven Hand <steven@xensource.com>
Mon, 15 Jan 2007 18:09:16 +0000 (18:09 +0000)
committerSteven Hand <steven@xensource.com>
Mon, 15 Jan 2007 18:09:16 +0000 (18:09 +0000)
(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>
tools/libxc/xc_linux_save.c

index 7ca8453848323363754c65b12a404bd24e48f974..ef64d1ef50bccd6921175cf93a2e0f21f9da2c86 100644 (file)
@@ -660,13 +660,6 @@ int xc_linux_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
         goto out;
     }
 
-   /* cheesy sanity check */
-    if ((info.max_memkb >> (PAGE_SHIFT - 10)) > max_mfn) {
-        ERROR("Invalid state record -- pfn count out of range: %lu",
-            (info.max_memkb >> (PAGE_SHIFT - 10)));
-        goto out;
-     }
-
     /* Map the shared info frame */
     if(!(live_shinfo = xc_map_foreign_range(xc_handle, dom, PAGE_SIZE,
                                             PROT_READ, shared_info_frame))) {