[CRIU] [PATCH 11/11] x86: cpu -- Show which exactly features are failing in fpu capability mode

Cyrill Gorcunov gorcunov at gmail.com
Thu Jun 14 20:27:30 MSK 2018


For easier understanding what is failed.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/arch/x86/cpu.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c
index d7d432b5476a..11a81863fd8a 100644
--- a/criu/arch/x86/cpu.c
+++ b/criu/arch/x86/cpu.c
@@ -250,7 +250,12 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info)
 		    __mismatch_fpu_bit(X86_FEATURE_OSXSAVE)	||
 		    __mismatch_fpu_bit(X86_FEATURE_XSAVES)) {
 			pr_err("FPU feature required by image "
-			       "is not supported on host.\n");
+			       "is not supported on host "
+			       "(fpu:%d fxsr:%d osxsave:%d xsaves:%d)\n",
+			       __mismatch_fpu_bit(X86_FEATURE_FPU),
+			       __mismatch_fpu_bit(X86_FEATURE_FXSR),
+			       __mismatch_fpu_bit(X86_FEATURE_OSXSAVE),
+			       __mismatch_fpu_bit(X86_FEATURE_XSAVES));
 			return -1;
 		} else
 			return 0;
-- 
2.14.4



More information about the CRIU mailing list