Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-06-14 20:27:30 +0300
committerAndrei Vagin <avagin@virtuozzo.com>2018-06-18 21:08:24 +0300
commit625fbb3f978713651022e80976a584f93d105da6 (patch)
tree11239602764b4e91961bd617d1ac2c2ac3cc01d4
parent8597a718a94f84c5e7594a5f5c78061cb842927b (diff)
x86: cpu -- Show which exactly features are failing in fpu capability mode
For easier understanding what is failed. Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
-rw-r--r--criu/arch/x86/cpu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c
index d7d432b54..11a81863f 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;