[CRIU] [PATCH 10/11] x86: cpu -- Use rt information since it might we filtered

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


With new cpu-cap='op=noxsaves' mode on x86 we should use
compel's instance of rt info since only it carries
features masked.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.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 e424fa0f6bc6..d7d432b5476a 100644
--- a/criu/arch/x86/cpu.c
+++ b/criu/arch/x86/cpu.c
@@ -45,8 +45,7 @@ static int cpu_has_unsupported_features(void)
 
 int cpu_init(void)
 {
-	if (compel_cpuid(&rt_cpu_info))
-		return -1;
+	compel_cpu_copy_cpuinfo(&rt_cpu_info);
 
 	BUILD_BUG_ON(sizeof(struct xsave_struct) != XSAVE_SIZE);
 	BUILD_BUG_ON(sizeof(struct i387_fxsave_struct) != FXSAVE_SIZE);
-- 
2.14.4



More information about the CRIU mailing list