- 14 Jan, 2013 16 commits
-
-
Andrey Vagin authored
A binary is required to get shared library dependencies Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
test_init was removed a long ago Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
zdtm.sh launched by an absolute path exits with an error due to an incorrect path to crtools Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It accepts va_list argument and suitable to be wrapped with another helpers. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
No need for core duplication. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> 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
Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
This patch is intended to reduce the usage of the macro P() since integer size mismatches sometimes may be fixed by this type generalization. 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
The macro is designated to tune the beginning of a sigframe on different architectures. 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
The macro REG_RES is to be used to access the syscall return value register in the struct user_regs_struct_t. The macro REG_IP is to be used to access the program counter register in the struct user_regs_struct_t. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
The macro is introduced to abstract from behavior of breakpoints: they generate different values of the field siginfo.si_code on different architectures. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
* include/image.h, * include/syscall-types.h, * include/restorer.h, * parasite-syscall.c, * cr-dump.c, * cr-show.c, * pie/parasite.c. 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>
-
- 11 Jan, 2013 18 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Currenly crtools supports a case when a child shared a fd table with parent. Here is only two interesting things. * Service descriptors should be cloned for each process who shared one fd table. * One task should restore files and other tasks should sleep in this * time. v2: * allocate fdt_lock from shared memory * don't wait a child, if it doesn't share fdtable v3: * don't move ids on the pstree image v4: * save ids in a separate image * save fdinfo per id instead of pid v5: fix alignment of service_fd_id Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A few processes can share one fdtable. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A few processes can share one fd table. Each process has own set of service file descriptors and a process knows nothing about servic fds of another processes. So if two process share one fd table, close_old_fds will close servic descriptors of another process. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
fdt shared data contains PID of process, which will restore file descriptors and a futex for synchronization. A process with mimimal pid restores file descriptors. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
It will be used for determing which resources are shared Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
It is read together with pstree items for checking what kind of resources should be shared. Core is too big for reading it in this place. v2: fix check_core Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A service fd should be created, otherwise get_service_fd returns -1. This patch removes this functionality from other subsystems and allows to clone service descriptors. v2: rename open_service_fd to install_service_fd v3: two patches were merged for bisecting Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
It looks like a namespace for service descriptors. It will be used for restoring tasks with shared fd tables. Service descriptors should be own for each process. v2: clone_service_fd doesn't know about sub-systems like log, proc, etc v3: Don't try to find a free name-space. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Because /proc could not be umounted, if any its file is opened. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It contains info about the pipe itself, not jut one of its ends. Thus if we want to add more (e.g. -- its size) we'll have to put it there and thus have it always present. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
v2: fix descriptions Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Currently fdinfo dumps for each task, so CR_FD_FDINFO is in cr_fdset. A few tasks can share one fd table and the set of descriptors will be dumped once and a image name will contain files_id instead of pid. In this case CR_FD_FDINFO will go away from cr_fdset. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
crtools should not failed, if new images are absent. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
zdtm.sh -b <commit> * save a current head, rollback on <commit> and compile crtools * execute a test and dump its processes * checkout the current head and comple crtools * restore test processes and check results Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 10 Jan, 2013 6 commits
-
-
Alexander Kartashov authored
* Replaced the shell interpreter with bash to run the script test/zdtm.sh correctly. * Added new directories into the routine contruct_root() searched by the Debian version of the dynamic linker. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Dump the with "new" prlimit syscall that works on arbitrary pid. Restore is done in restorer _after_ mappings mixup and _before_ caps drop to make it set any max value. The RLIM_INFINITY is handled explicitly to help future 64<->32 bits migration. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
On my FC17 box calloc calls brk() and the subsequent mprotect(PROT_EXEC) fails with EACCESS. Using mmap is safer here. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This one is bound to task's fs info (with cwd and root) thus put it in the fs.img file. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-