2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

x86: cpu -- Show additional xsave info on init

For debug sake.

Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Cyrill Gorcunov
2018-06-14 20:27:24 +03:00
committed by Andrei Vagin
parent 7ddf8d6dc9
commit 72b6ac8d89

View File

@@ -48,10 +48,14 @@ int cpu_init(void)
}
}
pr_debug("fpu:%d fxsr:%d xsave:%d\n",
pr_debug("fpu:%d fxsr:%d xsave:%d xsaveopt:%d xsavec:%d xgetbv1:%d xsaves:%d\n",
!!compel_cpu_has_feature(X86_FEATURE_FPU),
!!compel_cpu_has_feature(X86_FEATURE_FXSR),
!!compel_cpu_has_feature(X86_FEATURE_OSXSAVE));
!!compel_cpu_has_feature(X86_FEATURE_OSXSAVE),
!!compel_cpu_has_feature(X86_FEATURE_XSAVEOPT),
!!compel_cpu_has_feature(X86_FEATURE_XSAVEC),
!!compel_cpu_has_feature(X86_FEATURE_XGETBV1),
!!compel_cpu_has_feature(X86_FEATURE_XSAVES));
return 0;
}