Commit 8f5b093c authored by Pavel Emelyanov's avatar Pavel Emelyanov

mem-snap: Add comment about mem_snap_ctx object

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent febdd8a2
...@@ -20,6 +20,16 @@ ...@@ -20,6 +20,16 @@
#define PME_FILE (1ULL << 61) #define PME_FILE (1ULL << 61)
#define PME_SOFT_DIRTY (1Ull << 55) #define PME_SOFT_DIRTY (1Ull << 55)
/*
* On dump we suck in the whole parent pagemap. Then, when observing
* a page with soft-dirty bit cleared (i.e. -- not modified) we check
* this map for this page presense.
*
* Since we scan the address space from vaddr 0 to 0xF..F, we can do
* linear search in parent pagemap and the rover variables helps us
* do it.
*/
struct mem_snap_ctx { struct mem_snap_ctx {
unsigned long nr_iovs; unsigned long nr_iovs;
struct iovec *iovs; struct iovec *iovs;
......
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