• Andrey Vagin's avatar
    mm: rework of dumping shared memory · e869c16d
    Andrey Vagin authored
    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: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    e869c16d
Name
Last commit
Last update
..
atomic.h Loading commit data...
bitops.h Loading commit data...
compiler.h Loading commit data...
crtools.h Loading commit data...
file-ids.h Loading commit data...
files.h Loading commit data...
image.h Loading commit data...
inet_diag.h Loading commit data...
ipc_ns.h Loading commit data...
libnetlink.h Loading commit data...
list.h Loading commit data...
lock.h Loading commit data...
log.h Loading commit data...
namespaces.h Loading commit data...
parasite-syscall.h Loading commit data...
parasite.h Loading commit data...
proc_parse.h Loading commit data...
processor-flags.h Loading commit data...
ptrace.h Loading commit data...
rbtree.h Loading commit data...
restorer-log.h Loading commit data...
restorer.h Loading commit data...
sockets.h Loading commit data...
syscall-codes.h Loading commit data...
syscall.h Loading commit data...
sysctl.h Loading commit data...
types.h Loading commit data...
unix_diag.h Loading commit data...
util-net.h Loading commit data...
util.h Loading commit data...
uts_ns.h Loading commit data...