Skip to content

Commit 0852cf9

Browse files
mihalicynrst0git
authored andcommitted
criu/pagemap-cache: pagescan: look for PAGE_IS_GUARD pages
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
1 parent 66251ba commit 0852cf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

criu/pagemap-cache.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ int pmc_fill(pmc_t *pmc, u64 start, u64 end)
194194
};
195195
long ret;
196196

197+
if (kdat.has_pagemap_scan_guard_pages)
198+
args.return_mask |= PAGE_IS_GUARD;
199+
197200
ret = ioctl(pmc->fd, PAGEMAP_SCAN, &args);
198201
if (ret == -1) {
199202
pr_perror("PAGEMAP_SCAN");

0 commit comments

Comments
 (0)