- 10 Jul, 2013 6 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Mm used to be in code, so the call was left in that place. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
The description of the syscall mincore breaks the traditional ordering of syscall descriptions. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
This patch modifies the ARM syscall glue as follows: * the macros syscallX that produce different code for syscalls with different number of arguments are replaced by the generic syscall thunk copied from libc; * the syscall tables generation script is simplified since the syscall argument number analysis is redundant; * the ARMv7 specific instruction MOVW is eliminated. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
This patch modifies the build system to analyze the version of the target ARM architecture and setup the compiler flags accordingly. This makes it possible to support the ARM architectures prior to ARMv7. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 09 Jul, 2013 8 commits
-
-
Andrey Vagin authored
Actully for dumping tmpfs it should be remounted to somewhere else to avoid overmounts. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- include "protobuf/core.pb-c.h" for CoreEntry definition - gather structure predeclaration on top - move general comment on top as well - add extern for construct_sigframe helper Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Will need it to retrieve signal stack parameters. Note for simplicty I declared the syscall having void * arguments, while libc has it as stack_t *. This need to be cleaned up one day (because we use similar structure for sigframe definition and need to merge both definitions down). ARM syscall def from alekskartashov@ Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's not arch dependent by any means, thus it looks strange that we allocate it in arch/ but free in pstree.c. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- return -1 on error - assign allocated entries immediately - test for fpstate allocated on free path Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> CC: Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- We have a convention to return -1 on error - Drop empty line Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Yicheng Qin authored
Make criu still set scheduler and priority on restored process even when its setting is the default one. Or if criu itself has special setting on it, forked processes will inherit it, which is a wrong setting for restored ones. Signed-off-by:
Yicheng Qin <yichengq@google.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 08 Jul, 2013 2 commits
-
-
Cyrill Gorcunov authored
Number of rlimits may vary depending on system version criu is compiled against. So we use rst-allocator to carry all limits read from file. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 05 Jul, 2013 7 commits
-
-
Pavel Emelyanov authored
This memory is unmapped by handr, so no need in polluting self-smaps with it. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Actually after remap the rst-mem is still visible in the crtools, although at another address. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Reported-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The memory in question is allocated and then remaped into restorer with one call to mremap. Thus, to use the mem we need to provide to users API for * alloc memory * get current allocation pointer * convert current pointer into remapped one * the remap itself This would help combinding lots of small allocations such as tcp sockets to unrepair, siginfos and posix timers. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 08 Jul, 2013 4 commits
-
-
Andrey Vagin authored
timer is not freed in case of eof. CID 1042301 (#1 of 1): Resource leak (RESOURCE_LEAK) 15. leaked_storage: Variable timer going out of scope leaks the storage it points to. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
CID 1042292 (#1 of 1): Unsigned compared against 0 (NO_EFFECT) unsigned_compare: This less-than-zero comparison of an unsigned value is never true. "len < 0UL" Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Before doing something with mounts they should be marked as private, otherwise our actions can affects someone else. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
If a parent mount point is shared with exteranl mntns, a child will be umounted from the external mntns too. For example: $ mount -t tmpfs xxx /root/tmp/ $ mount --make-shared tmp $ mkdir tmp/xxx $ mount -t tmpfs xxx /root/tmp/xxx $ touch tmp/xxx/a $ unshare -m umount tmp/xxx $ ls -l tmp/xxx/a ls: cannot access tmp/xxx/a: No such file or directory This patch changes a parent mnt to private for umounting childrens. v2: exit if a mount point can not be marked ad private Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 04 Jul, 2013 1 commit
-
-
Pavel Emelyanov authored
This most likely meand, that the respective -diag module is missing. In that case the caller would check it and _might_ not fail the dump at once. Thus treat it as error. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Jul, 2013 2 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This file was created for backward compatibility with not-yet-patched kernel. Now we can remove it. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 03 Jul, 2013 1 commit
-
-
Andrey Vagin authored
Cc: Pavel Tikhomirov <snorcht@gmail.com> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Jul, 2013 2 commits
-
-
Pavel Emelyanov authored
The _actual_ need for this is checked in other place. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
parse_posix_timers should not call ferror if fopen returned NULL. Reported-by:
Adrian Reber <adrian@lisas.de> Cc: Pavel Tikhomirov <snorcht@gmail.com> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 01 Jul, 2013 2 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Unix socket and have no peer, but be in established state. Such types of sockets appear when one end of a connection closes and leaves the peer in full-shutdown state. Check this and handle properly on restore. Reported-by:
Florian Gross <Florian.S.Gross@web.de> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Jul, 2013 1 commit
-
-
Alexander Kartashov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 01 Jul, 2013 4 commits
-
-
Pavel Emelyanov authored
This release goes on increasing the bugfix-to-features ratio. Though we still have a lot of new stuff in the tool the amount of bugs we've caught and fixed increases. As a very notable feature it's worth mentioning that we have prepared crtools to be ready to restore images, converted from those generated by rh6-openvz kernel, i.e. we are very close to have live-migration from rh6 to whatever-it-will-be as the next openvz kernel. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Otherwise on non-soft-dirty kernel dump passes, but produces broken image. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
1st stage is -- creating the timers. It may fail if kernel allocated IDs in a manner we don't expect or runs out of memory. 2nd stage is -- arm the timers. It cannot fail, since we've validated the timespecs in advance and should happen after we've waited for all the other tasks to complete the restore. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-