[Devel] [PATCH CRIU] dump/restore: Supported ipset

2020-01-29 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Added ipset dump/restore functionality. At dump operation it calls 'ipset save' and stores result into raw text image. At restore it restores ipset by calling 'ipset restore'. This is done prior to restoring iptables. Signed-off-by: Valeriy Vdovin --- criu

[Devel] [PATCH] dump/restore: Support ipsets

2020-02-03 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Added ipset dump/restore functionality. At dump operation it calls 'ipset save' and stores result into raw text image. At restore it restores ipset by calling 'ipset restore'. This is done prior to restoring iptables. Signed-off-by: Valeriy Vdovin --- criu

[Devel] [PATCH CRIU v2] Supported ipsets

2020-02-03 Thread Valeriy Vdovin
descriptor. - updated zdtm tests to work on all flavors: host, ns, uns Valeriy Vdovin (1): dump/restore: Support ipsets criu/image-desc.c | 1 + criu/include/image-desc.h | 1 + criu/include/magic.h | 1 + criu/net.c| 51

[Devel] [PATCH CRIU v4 2/2] dump/restore: Maintain proper start_time param from /proc/[pid]/stat for each task

2020-01-28 Thread Valeriy Vdovin
time of all restored processes. Signed-off-by: Valeriy Vdovin --- criu/cr-dump.c | 66 - criu/cr-restore.c | 99 - criu/include/crtools.h | 25 + criu/include/prctl.h| 10 + criu

[Devel] [PATCH RH7 v4 0/2]

2020-01-28 Thread Valeriy Vdovin
lag set. At suspend this value is dumped by criu and at restore it's set back from a dump by criu. Valeriy Vdovin (1): ve/proc: Added separate start time field to task_struct to show in container fs/proc/array.c| 16 include/linux/sched.h | 5 + incl

[Devel] [PATCH RH7 v4 1/1] ve/proc: Added separate start time field to task_struct to show in container

2020-01-28 Thread Valeriy Vdovin
. Signed-off-by: Valeriy Vdovin --- fs/proc/array.c| 16 include/linux/sched.h | 5 + include/linux/ve.h | 23 +++ include/uapi/linux/prctl.h | 7 +++ kernel/fork.c | 13 + kernel/sys.c | 23

[Devel] [PATCH CRIU v5 0/1] dump/restore: Maintain proper start_time param from /proc/[pid]/stat for each task

2020-02-04 Thread Valeriy Vdovin
lag set. At suspend this value is dumped by criu and at restore it's set back from a dump by criu. v5 changes: - Added field to kerndat struct to check if prctl is supported by kernel - Don't fail restore if kernel does not support start time fixing. - Covered minor review comments. Valeriy Vdovin

[Devel] [PATCH CRIU v5 1/1] dump/restore: Maintain proper start_time param from /proc/[pid]/stat for each task

2020-02-04 Thread Valeriy Vdovin
time of all restored processes. Signed-off-by: Valeriy Vdovin --- criu/cr-dump.c | 60 +++- criu/cr-restore.c | 104 criu/include/crtools.h | 25 criu/include/kerndat.h | 1 + criu/include

[Devel] [PATCH CRIU v3 0/2] dump/restore: Support ipsets

2020-02-17 Thread Valeriy Vdovin
close call - rearranged one patch into 2. - worked on minor comments. v2 changes: - worked on minor v1 review comments, including leaked file descriptor. - updated zdtm tests to work on all flavors: host, ns, uns Valeriy Vdovin (2): dump/restore: Support ipsets zdtm: Added test that covers ipset

[Devel] [PATCH CRIU v3 1/2] dump/restore: Support ipsets

2020-02-17 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Added ipset dump/restore functionality. At dump operation it calls 'ipset save' and stores result into raw text image. At restore it restores ipset by calling 'ipset restore'. This is done prior to restoring iptables. Signed-off-by: Valeriy Vdovin --- criu

[Devel] [PATCH CRIU v3 2/2] zdtm: Added test that covers ipset checkpoint/restore functionality

2020-02-17 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- test/zdtm/static/Makefile | 1 + test/zdtm/static/netns-ipset.c| 58 +++ test/zdtm/static/netns-ipset.desc | 13 + 3 files changed, 72 insertions(+) create mode 100644 test/zdtm/static/netns-ipset.c

[Devel] [PATCH 1/2 v4 CRIU] dump/restore: Support ipsets

2020-02-21 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Added ipset dump/restore functionality. At dump operation it calls 'ipset save' and stores result into raw text image. At restore it restores ipset by calling 'ipset restore'. This is done prior to restoring iptables. Signed-off-by: Valeriy Vdovin --- criu

[Devel] [PATCH CRIU v4 2/2] zdtm: Added test that covers ipset checkpoint/restore functionality

2020-02-21 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- test/zdtm/static/Makefile | 1 + test/zdtm/static/netns-ipset.c| 66 +++ test/zdtm/static/netns-ipset.desc | 13 3 files changed, 80 insertions(+) create mode 100644 test/zdtm/static/netns-ipset.c

[Devel] [PATCH CRIU v4 0/2] dump/restore: Support ipsets

2020-02-21 Thread Valeriy Vdovin
files v3 changes: - removed duplicate file close call - rearranged one patch into 2. - worked on minor comments. v2 changes: - worked on minor v1 review comments, including leaked file descriptor. - updated zdtm tests to work on all flavors: host, ns, uns Valeriy Vdovin (2): dump/restore: Support

[Devel] [PATCH RH7 1/1] ve/proc: Added separate start time field to task_struct to show in container

2020-01-13 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Signed-off-by: Valeriy Vdovin --- fs/proc/array.c| 16 include/linux/sched.h | 5 + include/uapi/linux/prctl.h | 7 +++ kernel/fork.c | 15 +++ kernel/sys.c | 23

[Devel] [PATCH RH7 0/2]

2020-01-13 Thread Valeriy Vdovin
lag set. At suspend this value is dumped by criu and at restore it's set back from a dump by criu. Valeriy Vdovin (1): ve/proc: Added separate start time field to task_struct to show in container fs/proc/array.c| 16 include/linux/sched.h | 5 + incl

[Devel] [PATCH CRIU 2/2] dump/restore: Maintain proper start_time param from /proc/[pid]/stat for each task

2020-01-13 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Signed-off-by: Valeriy Vdovin --- criu/cr-dump.c | 49 criu/cr-restore.c | 68 ++ criu/include/crtools.h | 31 +++ images/core.proto

[Devel] [PATCH RH7 v3 1/1] ve/proc: Added separate start time field to task_struct to show in container

2020-01-14 Thread Valeriy Vdovin
. Signed-off-by: Valeriy Vdovin --- fs/proc/array.c| 16 include/linux/sched.h | 5 + include/linux/ve.h | 23 +++ include/uapi/linux/prctl.h | 7 +++ kernel/fork.c | 13 + kernel/sys.c | 23

[Devel] [PATCH CRIU v3 2/2] dump/restore: Maintain proper start_time param from /proc/[pid]/stat for each task

2020-01-14 Thread Valeriy Vdovin
time of all restored processes. Signed-off-by: Valeriy Vdovin --- criu/cr-dump.c | 57 +++ criu/cr-restore.c | 73 +++--- criu/include/crtools.h | 25 + images/core.proto | 2 ++ 4

[Devel] [PATCH RH7 v3 0/2]

2020-01-14 Thread Valeriy Vdovin
lag set. At suspend this value is dumped by criu and at restore it's set back from a dump by criu. Valeriy Vdovin (1): ve/proc: Added separate start time field to task_struct to show in container fs/proc/array.c| 16 include/linux/sched.h | 5 + incl

[Devel] [PATCH 1/2] Added separate start time field to task_struct to show in container

2019-12-31 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Signed-off-by: Valeriy Vdovin --- fs/proc/array.c| 16 include/linux/sched.h | 5 + include/uapi/linux/prctl.h | 9 + kernel/fork.c | 20 kernel/sys.c | 22

[Devel] [PATCH 2/2] Dump/restore start_time param from /proc/[pid]/stat for each task

2019-12-31 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-100083 Signed-off-by: Valeriy Vdovin --- criu/cr-dump.c| 49 + criu/cr-restore.c | 40 images/core.proto | 2 ++ 3 files changed, 91 insertions(+) diff --git a/criu/cr

[Devel] [PATCH 0/2] Start time of a task inside a container.

2019-12-31 Thread Valeriy Vdovin
lag set. At suspend this value is dumped by criu and at restore it's set back from a dump by criu. Valeriy Vdovin (1): Added separate start time field to task_struct to show in container fs/proc/array.c| 16 include/linux/sched.h | 5 + include/uapi/li

[Devel] [PATCH 3/6 v7] cgroup: Declared cgroup_mark_ve_root in public header

2020-04-15 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 4 kernel/cgroup.c| 2 +- kernel/ve/ve.c | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d671309..0239518 100644 --- a/include/linux

[Devel] [PATCH 2/6 v7] cgroup: Added rcu node string wrapper for in-cgroup usage.

2020-04-15 Thread Valeriy Vdovin
This will be used in further patches in same patchset. Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 7 +++ kernel/cgroup.c| 11 +++ 2 files changed, 18 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index aa91e47..d671309 100644

[Devel] [PATCH 1/6 v7] Implemented per-ve workqueue.

2020-04-15 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/ve.h | 2 ++ kernel/ve/ve.c | 25 + 2 files changed, 27 insertions(+) diff --git a/include/linux/ve.h b/include/linux/ve.h index 9d60838..362dae1 100644 --- a/include/linux/ve.h +++ b/include/linux/ve.h @@ -125,6

[Devel] [PATCH 6/6 v7] ve/cgroup: Set release_agent_path for root cgroups separately for each ve.

2020-04-15 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 5 +- include/linux/ve.h | 7 +++ kernel/cgroup.c| 133 - kernel/ve/ve.c | 67 - 4 files changed, 184 insertions(+), 28 deletions(-) diff

[Devel] [PATCH 5/6 v7] ve/cgroup: private per-cgroup-root data container

2020-04-15 Thread Valeriy Vdovin
As long as each ve is internally attached to a particular css_set via it's init_task, it's good to have container with parameters, which are common to each cgroup subsystem hierarchy, rooting from it's virtual root. Signed-off-by: Valeriy Vdovin --- include/linux/ve.h | 7 + kernel

[Devel] [PATCH 4/6 v7] ve/cgroup: Moved cgroup release notifications to per-ve workqueues.

2020-04-15 Thread Valeriy Vdovin
parameter and pass it between mounts, but now it's also responsible to store owning ve as a filed in cgroup struct. Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 27 include/linux/ve.h | 17 + kernel/cgroup.c| 168

[Devel] [PATCH 0/7 v7] Make release_agent per-cgroup property. Run release_agent in proper ve.

2020-04-15 Thread Valeriy Vdovin
s uses ..set_release_agent helper without lockdep v4: fixed possible race at cgroup_release_agent v5: Use per-ve workqueue to maintain per-ve cgroups notifications v6: rebased to latest branch v7: Fixed lockdeps, removed dependency from is_running param. Valeriy Vdovin (6): Implemented per-ve wor

[Devel] [PATCH v11 08/12] ve/cgroup: moved release_agent from system_wq to per-ve workqueues

2020-04-17 Thread Valeriy Vdovin
Each VE should execute release agent notifications within it's own workqueue. This way we achieve a more fine-grained control over release_agent work flushing at VE destruction. Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 1 + include/linux/ve.h | 10 ++ kernel

[Devel] [PATCH v11 06/12] ve/cgroup: unmark ve-root cgroups at container stop

2020-04-17 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 38 ++ kernel/ve/ve.c | 2 ++ 3 files changed, 41 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0a42f93..1bd0fe7 100644

[Devel] [PATCH v11 12/12] cgroup: reuse css_cgroup_from_root where appropriate

2020-04-17 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- kernel/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 0dbcd07..d985fd0 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -1099,7 +1099,7 @@ static int cgroup_show_options(struct

[Devel] [PATCH v11 11/12] ve/cgroup: set release_agent_path for root cgroups separately for each ve.

2020-04-17 Thread Valeriy Vdovin
This is done so that each container could set it's own release agent. Release agent information is now stored in per-cgroup-root data structure in ve. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 5 +- include

[Devel] [PATCH v11 02/12] cgroup: added rcu node string wrapper for in-cgroup usage.

2020-04-17 Thread Valeriy Vdovin
This will be used in further patches in same patchset. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 7 +++ kernel/cgroup.c| 15 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h

[Devel] [PATCH v11 0/12] Make release_agent per-cgroup property. Run release_agent in proper ve.

2020-04-17 Thread Valeriy Vdovin
m_root for ve->init_task - cgroup_mount initialized cgroup->ve_owner to ve0 - removed rarely used optimization branching from css_cgroup_from_root Valeriy Vdovin (12): ve/cgroup: implemented per-ve workqueue. cgroup: added rcu node string wrapper for in-cgroup usage. cgro

[Devel] [PATCH v11 01/12] ve/cgroup: implemented per-ve workqueue.

2020-04-17 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 2 ++ kernel/ve/ve.c | 25 + 2 files changed, 27 insertions(+) diff --git a/include/linux/ve.h b/include/linux/ve.h index 9d60838..362dae1 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH v11 10/12] ve/cgroup: private per-cgroup-root data container

2020-04-17 Thread Valeriy Vdovin
As long as each ve is internally attached to a particular css_set via it's init_task, it's good to have container with parameters, which are common to each cgroup subsystem hierarchy, rooting from it's virtual root. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h

[Devel] [PATCH v11 07/12] ve/cgroup: Added ve_owner field to cgroup

2020-04-17 Thread Valeriy Vdovin
-by: Valeriy Vdovin --- include/linux/cgroup.h | 4 kernel/cgroup.c| 43 +++ 2 files changed, 47 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 1bd0fe7..7ed718d 100644 --- a/include/linux/cgroup.h +++ b/include/linux

[Devel] [PATCH v11 05/12] ve/cgroup: saving root_css to ve

2020-04-17 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 7 +++ kernel/ve/ve.c | 6 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/ve.h b/include/linux/ve.h index 362dae1..02e00e9 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH v11 03/12] cgroup: declared cgroup_mark_ve_root in public header

2020-04-17 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 4 kernel/cgroup.c| 2 +- kernel/ve/ve.c | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d671309..0239518

[Devel] [PATCH v11 09/12] ve/cgroup: Implemented logic that uses 'cgroup->ve_owner' to run release_agent notifications.

2020-04-17 Thread Valeriy Vdovin
release_agent_cgroup work will extract ve_owner information from each cgroup in it's list and run user mode helper under it's namespaces. Also some code was added to detect ve destruction and manage release_agent executions in this case. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy

[Devel] [PATCH v11 04/12] cgroup: exported __put_css_set and wrappers to cgroup.h

2020-04-17 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 20 kernel/cgroup.c| 20 +--- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0239518..0a42f93

[Devel] [PATCH v10 5/9] ve/cgroup: saving root_css to ve

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 7 +++ kernel/ve/ve.c | 6 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/ve.h b/include/linux/ve.h index 362dae1..02e00e9 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH v10 0/9] Make release_agent per-cgroup property. Run release_agent in proper ve.

2020-04-16 Thread Valeriy Vdovin
_agent releases list spinlock early, patchset was split into lesser changes. v9: rearranged cgroup_mark_ve_root with ve_workqueue_start, added lost kfree v10: fixed indentation Valeriy Vdovin (9): ve/cgroup: implemented per-ve workqueue. cgroup: added rcu node string wrapper for in-cgroup

[Devel] [PATCH v10 9/9] ve/cgroup: set release_agent_path for root cgroups separately for each ve.

2020-04-16 Thread Valeriy Vdovin
This is done so that each container could set it's own release agent. Release agent information is now stored in per-cgroup-root data structure in ve. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 5 +- include

[Devel] [PATCH v10 7/9] ve/cgroup: moved cgroup release notifications to per-ve workqueues.

2020-04-16 Thread Valeriy Vdovin
parameter and pass it between mounts, but now it's also responsible to store owning ve as a filed in cgroup struct. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 5 +++ include/linux/ve.h | 10 + kernel/cgroup.c

[Devel] [PATCH v10 1/9] ve/cgroup: implemented per-ve workqueue.

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 2 ++ kernel/ve/ve.c | 25 + 2 files changed, 27 insertions(+) diff --git a/include/linux/ve.h b/include/linux/ve.h index 9d60838..362dae1 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH v10 3/9] cgroup: declared cgroup_mark_ve_root in public header

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 4 kernel/cgroup.c| 2 +- kernel/ve/ve.c | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d671309..0239518

[Devel] [PATCH v10 6/9] ve/cgroup: unmark ve-root cgroups at container stop

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 42 ++ kernel/ve/ve.c | 2 ++ 3 files changed, 45 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h

[Devel] [PATCH v10 8/9] ve/cgroup: private per-cgroup-root data container

2020-04-16 Thread Valeriy Vdovin
As long as each ve is internally attached to a particular css_set via it's init_task, it's good to have container with parameters, which are common to each cgroup subsystem hierarchy, rooting from it's virtual root. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h

[Devel] [PATCH v10 2/9] cgroup: added rcu node string wrapper for in-cgroup usage.

2020-04-16 Thread Valeriy Vdovin
This will be used in further patches in same patchset. Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 7 +++ kernel/cgroup.c| 15 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index aa91e47..d671309

[Devel] [PATCH v10 4/9] cgroup: exported __put_css_set and wrappers to cgroup.h

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 20 kernel/cgroup.c| 20 +--- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0239518..0a42f93

[Devel] [PATCH v9 5/9] ve/cgroup: saving root_css to ve

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/ve.h | 7 +++ kernel/ve/ve.c | 6 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/ve.h b/include/linux/ve.h index 362dae1..02e00e9 100644 --- a/include/linux/ve.h +++ b/include/linux/ve.h @@ -127,6

[Devel] [PATCH v9 8/9] ve/cgroup: private per-cgroup-root data container

2020-04-16 Thread Valeriy Vdovin
As long as each ve is internally attached to a particular css_set via it's init_task, it's good to have container with parameters, which are common to each cgroup subsystem hierarchy, rooting from it's virtual root. Signed-off-by: Valeriy Vdovin --- include/linux/ve.h | 7 + kernel/ve/ve.c

[Devel] [PATCH v9 4/9] cgroup: exported __put_css_set and wrappers to cgroup.h

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 20 kernel/cgroup.c| 20 +--- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0239518..0a42f93 100644 --- a/include/linux

[Devel] [PATCH v9 1/9] ve/cgroup: implemented per-ve workqueue.

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/ve.h | 2 ++ kernel/ve/ve.c | 25 + 2 files changed, 27 insertions(+) diff --git a/include/linux/ve.h b/include/linux/ve.h index 9d60838..362dae1 100644 --- a/include/linux/ve.h +++ b/include/linux/ve.h @@ -125,6

[Devel] [PATCH v9 7/9] ve/cgroup: moved cgroup release notifications to per-ve workqueues.

2020-04-16 Thread Valeriy Vdovin
parameter and pass it between mounts, but now it's also responsible to store owning ve as a filed in cgroup struct. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 5 +++ include/linux/ve.h | 10 + kernel/cgroup.c| 112

[Devel] [PATCH v9 6/9] ve/cgroup: unmark ve-root cgroups at container stop

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 42 ++ kernel/ve/ve.c | 2 ++ 3 files changed, 45 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0a42f93..1bd0fe7 100644

[Devel] [PATCH v9 3/9] cgroup: declared cgroup_mark_ve_root in public header

2020-04-16 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 4 kernel/cgroup.c| 2 +- kernel/ve/ve.c | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d671309..0239518 100644 --- a/include/linux

[Devel] [PATCH v9 0/9] Make release_agent per-cgroup property. Run release_agent in proper ve.

2020-04-16 Thread Valeriy Vdovin
_agent releases list spinlock early, patchset was split into lesser changes. v9: rearranged cgroup_mark_ve_root with ve_workqueue_start, added lost kfree Valeriy Vdovin (9): ve/cgroup: implemented per-ve workqueue. cgroup: added rcu node string wrapper for in-cgroup usage. cgroup: de

[Devel] [PATCH v9 2/9] cgroup: added rcu node string wrapper for in-cgroup usage.

2020-04-16 Thread Valeriy Vdovin
This will be used in further patches in same patchset. Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 7 +++ kernel/cgroup.c| 15 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index aa91e47..d671309

[Devel] [PATCH v9 9/9] ve/cgroup: set release_agent_path for root cgroups separately for each ve.

2020-04-16 Thread Valeriy Vdovin
This is done so that each container could set it's own release agent. Release agent information is now stored in per-cgroup-root data structure in ve. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 5 +- include/linux/ve.h | 7 +++ kernel

[Devel] [PATCH] beancounter: removed faulty warning from 'get_beancounter_held_real'

2020-04-21 Thread Valeriy Vdovin
https://jira.sw.ru/browse/PSBM-103215 Signed-off-by: Valeriy Vdovin --- include/bc/beancounter.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/include/bc/beancounter.h b/include/bc/beancounter.h index 6db175e..7e6acf6 100644 --- a/include/bc/beancounter.h +++ b/include/bc

[Devel] [PATCH RHEL7] Revert "ub: introduce helper for real "held" value (without precharge)"

2020-04-21 Thread Valeriy Vdovin
-by: Valeriy Vdovin --- include/bc/beancounter.h | 18 -- kernel/bc/proc.c | 3 ++- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/include/bc/beancounter.h b/include/bc/beancounter.h index 6db175e..a06d9b6 100644 --- a/include/bc/beancounter.h +++ b/include/bc

Re: [Devel] [PATCH v13 10/12] ve/cgroup: private per-cgroup-root data container

2020-04-21 Thread Valeriy Vdovin
On 21.04.2020 11:46, Kirill Tkhai wrote: On 20.04.2020 15:13, Valeriy Vdovin wrote: As long as each ve is internally attached to a particular css_set via it's init_task, it's good to have container with parameters, which are common to each cgroup subsystem hierarchy, rooting from it's virtual

[Devel] [PATCH RHEL7 v14 11/12] ve/cgroup: set release_agent_path for root cgroups separately for each ve.

2020-04-21 Thread Valeriy Vdovin
This is done so that each container could set it's own release agent. Release agent information is now stored in per-cgroup-root data structure in ve. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 5 +- include/linux/ve.h | 7

[Devel] [PATCH RHEL7 v14 01/12] ve/cgroup: implemented per-ve workqueue.

2020-04-21 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 2 ++ kernel/ve/ve.c | 25 + 2 files changed, 27 insertions(+) diff --git a/include/linux/ve.h b/include/linux/ve.h index 9d60838..362dae1 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH RHEL7 v14 05/12] ve/cgroup: saving root_css to ve

2020-04-21 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 7 +++ kernel/ve/ve.c | 6 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/ve.h b/include/linux/ve.h index 362dae1..02e00e9 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH RHEL7 v14 03/12] cgroup: declared cgroup_mark_ve_root in public header

2020-04-21 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 4 kernel/cgroup.c| 2 +- kernel/ve/ve.c | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d671309..0239518

[Devel] [PATCH RHEL7 v14 09/12] ve/cgroup: Implemented logic that uses 'cgroup->ve_owner' to run release_agent notifications.

2020-04-21 Thread Valeriy Vdovin
-by: Valeriy Vdovin --- kernel/cgroup.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 6437344..ae417ce 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -5436,7 +5436,8 @@ void cgroup_release_agent(struct

[Devel] [PATCH RHEL7 v14 07/12] ve/cgroup: Added ve_owner field to cgroup

2020-04-21 Thread Valeriy Vdovin
-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 4 kernel/cgroup.c| 43 +++ 2 files changed, 47 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 1bd0fe7..7ed718d 100644 --- a/include/linux

[Devel] [PATCH RHEL7 v14 12/12] cgroup: reuse css_cgroup_from_root where appropriate

2020-04-21 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- kernel/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 006319f..f40e8f24 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -1099,7 +1099,7 @@ static int cgroup_show_options(struct

[Devel] [PATCH RHEL7 v14 10/12] ve/cgroup: private per-cgroup-root data container

2020-04-21 Thread Valeriy Vdovin
As long as each ve is internally attached to a particular css_set via it's init_task, it's good to have container with parameters, which are common to each cgroup subsystem hierarchy, rooting from it's virtual root. Signed-off-by: Valeriy Vdovin --- include/linux/ve.h | 7 + kernel/ve/ve.c

[Devel] [PATCH RHEL7 v14 08/12] ve/cgroup: moved release_agent from system_wq to per-ve workqueues

2020-04-21 Thread Valeriy Vdovin
Each VE should execute release agent notifications within it's own workqueue. This way we achieve a more fine-grained control over release_agent work flushing at VE destruction. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 1 + include/linux/ve.h

[Devel] [PATCH RHEL7 v14 0/12] Make release_agent per-cgroup property. Run release_agent in proper ve.

2020-04-21 Thread Valeriy Vdovin
proper patch. cgroup is rm'ed from release_list under rcu_read_lock. v14: Rearranged error checking code after usermodehelper call in cgroup_release_agent Valeriy Vdovin (12): ve/cgroup: implemented per-ve workqueue. cgroup: added rcu node string wrapper for in-cgroup usage. cgro

[Devel] [PATCH RHEL7 v14 04/12] cgroup: exported __put_css_set and wrappers to cgroup.h

2020-04-21 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 20 kernel/cgroup.c| 20 +--- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0239518..0a42f93

[Devel] [PATCH RHEL7 v14 02/12] cgroup: added rcu node string wrapper for in-cgroup usage.

2020-04-21 Thread Valeriy Vdovin
This will be used in further patches in same patchset. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 7 +++ kernel/cgroup.c| 15 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h

[Devel] [PATCH RHEL7 v14 06/12] ve/cgroup: unmark ve-root cgroups at container stop

2020-04-21 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 38 ++ kernel/ve/ve.c | 2 ++ 3 files changed, 41 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index

[Devel] from 2d4c261db6f847b8ff801625285b571ccc9af4f3 mon sep 17 00:00:00 2001

2020-04-21 Thread Valeriy Vdovin
12+ Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu (cherry-picked from f43f39958beb206b53292801e216d9b8a660f087 due to https://jira.sw.ru/browse/PSBM-103298) Signed-off-by: Valeriy Vdovin --- crypto/crypto_user.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

[Devel] [PATCH RHEL8] crypto: user - fix leaking uninitialized memory to userspace

2020-04-21 Thread Valeriy Vdovin
12+ Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu (cherry-picked from f43f39958beb206b53292801e216d9b8a660f087 due to https://jira.sw.ru/browse/PSBM-103298) Signed-off-by: Valeriy Vdovin --- crypto/crypto_user.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

[Devel] [PATCH v12 11/12] ve/cgroup: set release_agent_path for root cgroups separately for each ve.

2020-04-19 Thread Valeriy Vdovin
This is done so that each container could set it's own release agent. Release agent information is now stored in per-cgroup-root data structure in ve. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 5 +- include

[Devel] [PATCH v12 08/12] ve/cgroup: moved release_agent from system_wq to per-ve workqueues

2020-04-19 Thread Valeriy Vdovin
Each VE should execute release agent notifications within it's own workqueue. This way we achieve a more fine-grained control over release_agent work flushing at VE destruction. Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 1 + include/linux/ve.h | 10 ++ kernel

[Devel] [PATCH v12 03/12] cgroup: declared cgroup_mark_ve_root in public header

2020-04-19 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 4 kernel/cgroup.c| 2 +- kernel/ve/ve.c | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d671309..0239518

[Devel] [PATCH v12 01/12] ve/cgroup: implemented per-ve workqueue.

2020-04-19 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 2 ++ kernel/ve/ve.c | 25 + 2 files changed, 27 insertions(+) diff --git a/include/linux/ve.h b/include/linux/ve.h index 9d60838..362dae1 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH v12 12/12] cgroup: reuse css_cgroup_from_root where appropriate

2020-04-19 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- kernel/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 040d9b3..1bb7621 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -1099,7 +1099,7 @@ static int cgroup_show_options(struct

[Devel] [PATCH v12 05/12] ve/cgroup: saving root_css to ve

2020-04-19 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 7 +++ kernel/ve/ve.c | 6 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/ve.h b/include/linux/ve.h index 362dae1..02e00e9 100644 --- a/include/linux/ve.h +++ b/include

[Devel] [PATCH v12 0/12] Make release_agent per-cgroup property. Run release_agent in proper ve.

2020-04-19 Thread Valeriy Vdovin
m_root for ve->init_task - cgroup_mount initialized cgroup->ve_owner to ve0 - removed rarely used optimization branching from css_cgroup_from_root v12: Fixed compilation error in css_cgroup_from_root. Fixed usermodehelper error checking Valeriy Vdovin (12): ve/cgroup: implem

[Devel] [PATCH v12 04/12] cgroup: exported __put_css_set and wrappers to cgroup.h

2020-04-19 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 20 kernel/cgroup.c| 20 +--- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0239518..0a42f93

[Devel] [PATCH v12 06/12] ve/cgroup: unmark ve-root cgroups at container stop

2020-04-19 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 1 + kernel/cgroup.c| 38 ++ kernel/ve/ve.c | 2 ++ 3 files changed, 41 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 0a42f93..1bd0fe7 100644

[Devel] [PATCH v12 07/12] ve/cgroup: Added ve_owner field to cgroup

2020-04-19 Thread Valeriy Vdovin
-by: Valeriy Vdovin --- include/linux/cgroup.h | 4 kernel/cgroup.c| 43 +++ 2 files changed, 47 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 1bd0fe7..7ed718d 100644 --- a/include/linux/cgroup.h +++ b/include/linux

[Devel] [PATCH v12 10/12] ve/cgroup: private per-cgroup-root data container

2020-04-19 Thread Valeriy Vdovin
As long as each ve is internally attached to a particular css_set via it's init_task, it's good to have container with parameters, which are common to each cgroup subsystem hierarchy, rooting from it's virtual root. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h

[Devel] [PATCH v12 09/12] ve/cgroup: Implemented logic that uses 'cgroup->ve_owner' to run release_agent notifications.

2020-04-19 Thread Valeriy Vdovin
release_agent_cgroup work will extract ve_owner information from each cgroup in it's list and run user mode helper under it's namespaces. Also some code was added to detect ve destruction and manage release_agent executions in this case. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy

[Devel] [PATCH v12 02/12] cgroup: added rcu node string wrapper for in-cgroup usage.

2020-04-19 Thread Valeriy Vdovin
This will be used in further patches in same patchset. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 7 +++ kernel/cgroup.c| 15 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h

[Devel] [PATCH] crypto: vmac - separate tfm and request context

2020-04-20 Thread Valeriy Vdovin
s: f1939f7c5645 ("crypto: vmac - New hash algorithm for intel_txt support") Cc: # v2.6.32+ Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu (cherry-picked from bb29648102335586e9a66289a1d98a0cb392b6e5 due to https://jira.sw.ru/browse/PSBM-103241) Signed-off-by: Valeriy.Vdovin Si

[Devel] [PATCH v13 11/12] ve/cgroup: set release_agent_path for root cgroups separately for each ve.

2020-04-20 Thread Valeriy Vdovin
This is done so that each container could set it's own release agent. Release agent information is now stored in per-cgroup-root data structure in ve. https://jira.sw.ru/browse/PSBM-83887 Signed-off-by: Valeriy Vdovin --- include/linux/cgroup.h | 5 +- include/linux/ve.h | 7

[Devel] [PATCH v13 02/12] cgroup: added rcu node string wrapper for in-cgroup usage.

2020-04-20 Thread Valeriy Vdovin
This will be used in further patches in same patchset. Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 7 +++ kernel/cgroup.c| 15 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h

[Devel] [PATCH v13 07/12] ve/cgroup: Added ve_owner field to cgroup

2020-04-20 Thread Valeriy Vdovin
-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 4 kernel/cgroup.c| 43 +++ 2 files changed, 47 insertions(+) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index 1bd0fe7..7ed718d 100644 --- a/include/linux

[Devel] [PATCH v13 03/12] cgroup: declared cgroup_mark_ve_root in public header

2020-04-20 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/cgroup.h | 4 kernel/cgroup.c| 2 +- kernel/ve/ve.c | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index d671309..0239518

[Devel] [PATCH v13 05/12] ve/cgroup: saving root_css to ve

2020-04-20 Thread Valeriy Vdovin
Signed-off-by: Valeriy Vdovin Reviewed-by: Kirill Tkhai --- include/linux/ve.h | 7 +++ kernel/ve/ve.c | 6 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/include/linux/ve.h b/include/linux/ve.h index 362dae1..02e00e9 100644 --- a/include/linux/ve.h +++ b/include

  1   2   3   4   >