2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

cpu: Add 'ins' mode to --cpu-cap option

In this mode we test if target cpu has all features present
in image file but do not require bit to bit match: target cpu
may be a new one with more features present.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2014-12-17 16:48:00 +03:00
committed by Pavel Emelyanov
parent bbc38f3dac
commit fd07bc7791
6 changed files with 130 additions and 9 deletions

View File

@@ -1894,7 +1894,7 @@ int cr_restore_tasks(void)
if (vdso_init())
goto err;
if (opts.cpu_cap & CPU_CAP_CPU) {
if (opts.cpu_cap & (CPU_CAP_INS | CPU_CAP_CPU)) {
if (cpu_validate_cpuinfo())
goto err;
}