[CRIU] [PATCH v2 1/2] cr-check: verify uffd availability based on cached kdat

Mike Rapoport rppt at linux.vnet.ibm.com
Tue Aug 15 14:09:21 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 b1de144..16c2bdd 100644
--- a/criu/cr-check.c
+++ b/criu/cr-check.c
@@ -1048,9 +1048,6 @@ static int check_compat_cr(void)
 
 static int check_uffd(void)
 {
-	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