[CRIU] [PATCH 10/15] opt: cpu-cap -- Define default capability

Cyrill Gorcunov gorcunov at openvz.org
Fri Sep 19 07:03:12 PDT 2014


We were not requiring cpu level capability earlier,
moreover cpuinfo will require own dump image so
lets make it optional. For this sake "default"
cpu capability kept untouched, ie FPU only.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 crtools.c            | 2 +-
 include/cr_options.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/crtools.c b/crtools.c
index 7aae0878b9f7..8928150e0391 100644
--- a/crtools.c
+++ b/crtools.c
@@ -53,7 +53,7 @@ void init_opts(void)
 	INIT_LIST_HEAD(&opts.ext_mounts);
 	INIT_LIST_HEAD(&opts.new_cgroup_roots);
 
-	opts.cpu_cap = CPU_CAP_ALL;
+	opts.cpu_cap = CPU_CAP_DEFAULT;
 	opts.manage_cgroups = false;
 	opts.ps_socket = -1;
 }
diff --git a/include/cr_options.h b/include/cr_options.h
index a2b87bdde70d..28d653237339 100644
--- a/include/cr_options.h
+++ b/include/cr_options.h
@@ -12,6 +12,7 @@
 #define CPU_CAP_CPUINFO		(2u)
 #define CPU_CAP_ALL		(-1u)
 #define CPU_CAP_NONE		(0u)
+#define CPU_CAP_DEFAULT		(CPU_CAP_FPU)
 
 struct cg_root_opt {
 	struct list_head node;
-- 
1.9.3



More information about the CRIU mailing list