Commit 985d154e authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

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: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Acked-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 8eae2ee8
...@@ -61,16 +61,16 @@ static mutex_t *lazy_sock_mutex; ...@@ -61,16 +61,16 @@ static mutex_t *lazy_sock_mutex;
struct lazy_iov { struct lazy_iov {
struct list_head l; struct list_head l;
unsigned long base; unsigned long base; /* run-time start address, tracks remaps */
unsigned long img_base; unsigned long img_base; /* start address at the dump time */
unsigned long len; unsigned long len;
}; };
struct lazy_pages_info; struct lazy_pages_info;
struct lp_req { struct lp_req {
unsigned long addr; unsigned long addr; /* actual #PF (or background) destination */
unsigned long img_addr; unsigned long img_addr; /* the corresponding address at the dump time */
struct list_head l; struct list_head l;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment