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:
committed by
Pavel Emelyanov
parent
bbc38f3dac
commit
fd07bc7791
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user