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

Cyrill Gorcunov gorcunov at openvz.org
Mon Sep 8 14:39:40 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 44c02d36fe7d..662814bf5df5 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 48706de69df3..1d9346c00848 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