From 028a1bc80a274c354211d3d85a3410edb4c85c8c Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Mon, 6 Feb 2017 13:44:03 +0200 Subject: [PATCH] lazy-pages: summary: allow different total and copied pages With address space manipulations, amount of pages that the lazy-pages daemon will copy might differ from amount of pages we had in the dumps. Disable the warning and error retval for now; we can restore the accounting once uffd event handling stabilizes a bit. travis-ci: success for lazy-pages: add non-#PF events handling (rev2) Signed-off-by: Mike Rapoport Signed-off-by: Pavel Emelyanov --- criu/uffd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/criu/uffd.c b/criu/uffd.c index 58dcdb947..1066dc1eb 100644 --- a/criu/uffd.c +++ b/criu/uffd.c @@ -744,12 +744,14 @@ static int lazy_pages_summary(struct lazy_pages_info *lpi) lp_debug(lpi, "UFFD transferred pages: (%ld/%ld)\n", lpi->copied_pages, lpi->total_pages); +#if 0 if ((lpi->copied_pages != lpi->total_pages) && (lpi->total_pages > 0)) { lp_warn(lpi, "Only %ld of %ld pages transferred via UFFD\n" "Something probably went wrong.\n", lpi->copied_pages, lpi->total_pages); return 1; } +#endif return 0; }