[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Remove bogus sanity check from xc_linux_save.



# HG changeset patch
# User Steven Hand <steven@xxxxxxxxxxxxx>
# Date 1168884556 0
# Node ID 887168cf753254e70f38974367091f687a480bd5
# Parent  72b977953aafccfd6f79d1eff3e677bbfdcc7d81
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@xxxxxxxxxxxxx>
---
 tools/libxc/xc_linux_save.c |    7 -------
 1 files changed, 7 deletions(-)

diff -r 72b977953aaf -r 887168cf7532 tools/libxc/xc_linux_save.c
--- a/tools/libxc/xc_linux_save.c       Mon Jan 15 18:07:32 2007 +0000
+++ b/tools/libxc/xc_linux_save.c       Mon Jan 15 18:09:16 2007 +0000
@@ -660,13 +660,6 @@ int xc_linux_save(int xc_handle, int io_
         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))) {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.