From: Steven Hand Date: Mon, 15 Jan 2007 18:09:16 +0000 (+0000) Subject: Remove bogus sanity check from xc_linux_save. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15396^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c5d238206dd1aa8f64e10efe12f031766ebf1e90;p=xen.git 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 --- 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))) {