diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2018-06-14 20:27:29 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2018-06-18 21:08:24 +0300 |
commit | 8597a718a94f84c5e7594a5f5c78061cb842927b (patch) | |
tree | ab7bf6396ac78464deeab40dffeaf13eb798cc53 | |
parent | d9f072d0f9bfbbd703854692b65addf7a1a4055a (diff) |
x86: cpu -- Use rt information since it might we filtered
With new cpu-cap='op=noxsaves' mode on x86 we should use
compel's instance of rt info since only it carries
features masked.
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/criu/arch/x86/cpu.c b/criu/arch/x86/cpu.c index e424fa0f6..d7d432b54 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); |