From 985d154ea66df57ffc7c95dd945747ef737f5624 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Wed, 8 Feb 2017 14:01:14 +0200 Subject: [PATCH] lazy-pages: add comments about different addresses in lazy_iov and lp_req Both lazy_iov and lp_req have two fields for address/start: the run-time address that tracks remaps, and the "dump time" address, which is required for pagemap accesses. Signed-off-by: Mike Rapoport Acked-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- criu/uffd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/criu/uffd.c b/criu/uffd.c index f6ce817d9..6cee7ecb1 100644 --- a/criu/uffd.c +++ b/criu/uffd.c @@ -61,16 +61,16 @@ static mutex_t *lazy_sock_mutex; struct lazy_iov { struct list_head l; - unsigned long base; - unsigned long img_base; + unsigned long base; /* run-time start address, tracks remaps */ + unsigned long img_base; /* start address at the dump time */ unsigned long len; }; struct lazy_pages_info; struct lp_req { - unsigned long addr; - unsigned long img_addr; + unsigned long addr; /* actual #PF (or background) destination */ + unsigned long img_addr; /* the corresponding address at the dump time */ struct list_head l; };