Commit b44eaddb authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

x86: cpu -- Require compatibility on instruction level by default

For a long time we've been demanding from cpus to be compatible
on fpu frame level, but growing list of cpu features triggers
inability for restored programs to proceed after restore due
to specific intructions execution (such as avx2). Note the
fpu frame may carry same size but not on instruction level
where SIGILL may happen after the restore.

Thus lets require instruction mode to be set and verified by default.
Still one can drop this option via command line or rpc request.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 51b4ca96
...@@ -322,7 +322,7 @@ For example, the command line for the above example should look like this: ...@@ -322,7 +322,7 @@ For example, the command line for the above example should look like this:
- *all* for all above set. - *all* for all above set.
+ +
By default the option is set to the combination of *fpu* and *cpu*. By default the option is set to *fpu* and *ins*.
*--cgroup-root* ['controller':]/'newroot':: *--cgroup-root* ['controller':]/'newroot'::
Change the root for the controller that will be dumped. By default, *criu* Change the root for the controller that will be dumped. By default, *criu*
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define CPU_CAP_INS (1u << 2) /* Instructions CPU capability */ #define CPU_CAP_INS (1u << 2) /* Instructions CPU capability */
#define CPU_CAP_IMAGE (1u << 3) /* Write capability on dump and read on restore*/ #define CPU_CAP_IMAGE (1u << 3) /* Write capability on dump and read on restore*/
#define CPU_CAP_ALL (CPU_CAP_FPU | CPU_CAP_CPU | CPU_CAP_INS) #define CPU_CAP_ALL (CPU_CAP_FPU | CPU_CAP_CPU | CPU_CAP_INS)
#define CPU_CAP_DEFAULT (CPU_CAP_FPU | CPU_CAP_CPU) #define CPU_CAP_DEFAULT (CPU_CAP_FPU | CPU_CAP_INS)
struct cg_root_opt { struct cg_root_opt {
struct list_head node; struct list_head node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment