aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSteven Hand <steven@xensource.com>2007-01-15 18:09:16 +0000
committerSteven Hand <steven@xensource.com>2007-01-15 18:09:16 +0000
commitc5d238206dd1aa8f64e10efe12f031766ebf1e90 (patch)
treede5b4b84b6480d4d5c4e3c79deed77ee96b0ac14 /tools
parent8d6fcabc22dd8893359a7a95b131acd470e8815d (diff)
downloadxen-c5d238206dd1aa8f64e10efe12f031766ebf1e90.tar.gz
xen-c5d238206dd1aa8f64e10efe12f031766ebf1e90.tar.bz2
xen-c5d238206dd1aa8f64e10efe12f031766ebf1e90.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/libxc/xc_linux_save.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/libxc/xc_linux_save.c b/tools/libxc/xc_linux_save.c
index 7ca8453848..ef64d1ef50 100644
--- a/tools/libxc/xc_linux_save.c
+++ b/tools/libxc/xc_linux_save.c
@@ -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))) {