mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 16:51:37 +00:00
x86: cpu -- Move strict capability mode into own block
It should be there from the beginning but happen to escape. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Reviewed-by: Dmitry Safonov <0x7f454c46@gmaill.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
ddd373f490
commit
ee478bed97
1 changed files with 6 additions and 4 deletions
|
|
@ -294,10 +294,12 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info)
|
|||
/*
|
||||
* Strict capability mode. Everything must match.
|
||||
*/
|
||||
if (memcmp(cpu_info->x86_capability, rt_cpu_info.x86_capability,
|
||||
sizeof(cpu_info->x86_capability))) {
|
||||
pr_err("CPU capabilities do not match run time\n");
|
||||
return -1;
|
||||
if (opts.cpu_cap & CPU_CAP_CPU) {
|
||||
if (memcmp(cpu_info->x86_capability, rt_cpu_info.x86_capability,
|
||||
sizeof(cpu_info->x86_capability))) {
|
||||
pr_err("CPU capabilites do not match run time\n");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue