[CRIU] [PATCH 09/12] x86: cpu -- Drop no longer needed early exit from cpu_validate_features

Cyrill Gorcunov gorcunov at gmail.com
Thu Aug 30 14:00:24 MSK 2018


Since now validation is bit based there is no longer need to
exit early if fpu matches, we rather need over all possible
options where several capability modes can be set.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
Reviewed-by: Dmitry Safonov <0x7f454c46 at gmaill.com>
---
 criu/arch/x86/cpu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c
index 1945a3dc31d5..a3f173b31c11 100644
--- a/criu/arch/x86/cpu.c
+++ b/criu/arch/x86/cpu.c
@@ -258,8 +258,7 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info)
 			       __mismatch_fpu_bit(X86_FEATURE_OSXSAVE),
 			       __mismatch_fpu_bit(X86_FEATURE_XSAVES));
 			return -1;
-		} else
-			return 0;
+		}
 #undef __mismatch_fpu_bit
 
 		/*
-- 
2.17.1



More information about the CRIU mailing list