[CRIU] [PATCH 4/7] cr-check: verify uffd availability based on cached kdat

Mike Rapoport rppt at linux.vnet.ibm.com
Tue Aug 15 09:23:51 MSK 2017


Since we initialize kdat early it is enough to check kdat.has_uffd and
kdat.uffd_features to verify availability of userfaultfd

Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 criu/cr-check.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/criu/cr-check.c b/criu/cr-check.c
index b81d578..0c0a760 100644
--- a/criu/cr-check.c
+++ b/criu/cr-check.c
@@ -1053,9 +1053,6 @@ static int check_uffd(void)
 		UFFD_FEATURE_EVENT_UNMAP |
 		UFFD_FEATURE_EVENT_REMOVE;
 
-	if (kerndat_uffd())
-		return -1;
-
 	if (!kdat.has_uffd) {
 		pr_err("UFFD is not supported\n");
 		return -1;
-- 
2.7.4



More information about the CRIU mailing list