[CRIU] [PATCH 1/2] uffd: do not treat VDSO pages as lazy

Mike Rapoport rapoport at il.ibm.com
Wed Mar 23 06:48:42 PDT 2016


VDSO is just a few pages and they can be loaded directly rather than go
through userfaultfd to save some complexity on the lazy-pages daemon side.

Signed-off-by: Mike Rapoport <rapoport at il.ibm.com>
---
 criu/include/vma.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/criu/include/vma.h b/criu/include/vma.h
index 28b77b5..6e06243 100644
--- a/criu/include/vma.h
+++ b/criu/include/vma.h
@@ -113,6 +113,7 @@ static inline bool vma_entry_can_be_lazy(VmaEntry *e)
 {
 	return ((e->flags & MAP_ANONYMOUS) &&
 		(e->flags & MAP_PRIVATE) &&
+		!(vma_entry_is(e, VMA_AREA_VDSO)) &&
 		!(vma_entry_is(e, VMA_AREA_VSYSCALL)));
 }
 
-- 
1.9.1



More information about the CRIU mailing list