From 72b6ac8d892120eb15d13d4fc2d3cc7790a698af Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 14 Jun 2018 20:27:24 +0300 Subject: [PATCH] x86: cpu -- Show additional xsave info on init For debug sake. Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com> Signed-off-by: Cyrill Gorcunov Signed-off-by: Andrei Vagin --- criu/arch/x86/cpu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c index b065a1f92..b32b8824f 100644 --- a/criu/arch/x86/cpu.c +++ b/criu/arch/x86/cpu.c @@ -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; }