2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

criu/pagemap-cache: pagescan: look for PAGE_IS_GUARD pages

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
This commit is contained in:
Alexander Mikhalitsyn
2025-04-06 20:51:24 +02:00
committed by Radostin Stoyanov
parent 66251ba1d9
commit 0852cf97ec

View File

@@ -194,6 +194,9 @@ int pmc_fill(pmc_t *pmc, u64 start, u64 end)
}; };
long ret; long ret;
if (kdat.has_pagemap_scan_guard_pages)
args.return_mask |= PAGE_IS_GUARD;
ret = ioctl(pmc->fd, PAGEMAP_SCAN, &args); ret = ioctl(pmc->fd, PAGEMAP_SCAN, &args);
if (ret == -1) { if (ret == -1) {
pr_perror("PAGEMAP_SCAN"); pr_perror("PAGEMAP_SCAN");