criu/include
Andrey Vagin e869c16df5 mm: rework of dumping shared memory
vma_entry contains shmid and all shared memory are dumped in own files.
The most interesting thing is restore.
A maping is restored by process with the smallest pid. The mamping
is created before executing restorer.
We map a full mapping and restore it's conten, then we open a file from
/proc/pid/map_files and store a descriptor in vma_info. The mapping is
unmaped. Now we can map any region of this mapping in the restorer.

We use this trick, because a target process may have this mapping in
some places and the restorer has not function to open proc files.

v2: fix error hangling
xemul: Fixed static-s and args for cr_dump_shmem

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-03-21 11:03:55 +04:00
..
atomic.h Gather futex helpers into lock.h 2011-12-26 23:54:18 +04:00
bitops.h restore: Add mutexes via futex syscall and order threads creation 2011-11-18 16:09:01 +04:00
compiler.h files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
crtools.h mm: rework of dumping shared memory 2012-03-21 11:03:55 +04:00
file-ids.h files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
files.h files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
image.h mm: rework of dumping shared memory 2012-03-21 11:03:55 +04:00
inet_diag.h Trivial whitespace cleanup 2012-01-30 21:29:42 +04:00
ipc_ns.h IPC: show semaphores set 2012-02-15 13:33:46 +04:00
libnetlink.h net: Define named constant for nlmsg_seq 2011-12-27 20:13:18 +04:00
list.h list: Cleanup spaces/tabs mess 2012-02-01 14:38:49 +04:00
lock.h lock: add a new primitive cr_wait_until_greater (v2) 2012-01-19 16:16:58 +04:00
log.h log: log-engine slight redesign 2012-03-02 01:05:43 +04:00
namespaces.h namespaces: parametrized namespace option introduced 2012-01-31 22:32:22 +04:00
parasite-syscall.h parasite: Check for unexpected signals delivery 2012-03-01 19:31:20 +04:00
parasite.h parasite: Refactor code to follow calling convention 2012-03-19 13:53:14 +04:00
proc_parse.h dump: Check for pids reuse at suspend 2012-03-01 19:31:20 +04:00
processor-flags.h Add processor-flags.h 2012-02-14 17:18:08 +04:00
ptrace.h dump/restore: Rework final-state switch 2012-03-01 19:31:20 +04:00
rbtree.h files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
restorer-log.h logfd: Distinguish functions which do setup logdf 2012-03-02 01:05:43 +04:00
restorer.h mm: rework of dumping shared memory 2012-03-21 11:03:55 +04:00
sockets.h show: UNIX sockets queue support 2012-02-29 17:42:30 +04:00
syscall-codes.h parasite: support sockets queues 2012-02-29 17:42:30 +04:00
syscall.h dump: Restart seize in case reparent occurred 2012-03-01 19:31:21 +04:00
sysctl.h show: Use pr_msg for showing contents on console 2012-03-02 11:12:59 +04:00
types.h syscalls: Introduce sys_kcmp syscall 2012-02-28 19:13:46 +04:00
unix_diag.h sockets: Update unix_diag.h 2012-01-10 17:26:50 +04:00
util-net.h check: Add some basic checks 2012-03-02 14:15:28 +04:00
util.h mm: move shmid to vma_entry (v2) 2012-03-21 10:56:31 +04:00
uts_ns.h namespaces: split UTS and generic code 2012-01-31 13:43:28 +04:00