- 17 Dec, 2012 9 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Syntax is crtools exec -t <pid> <syscall_name> [<arguments>] Two types of arguments are supported -- plain, treated as number, passed as is to the syscall. Buffer, started with '&' -- the rest of the string is pushed to the tgt task's memory and pointer to one is passed as syscall argument. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Reserve the cmdline option for this and link empty file. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The fist part prepares ctl to controll the seized task. The 2nd one mmaps shareb buffer for data exchange. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This one calls a syscon on seized task. Existing mmap/munmap just use one. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Will be used by other code. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
I'll include it into a place, that knows nothing about pb types. Use generic pointer instead. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We'll have to generate syscall table in another form, prepare for it . Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Dec, 2012 2 commits
-
-
Pavel Emelyanov authored
This is mostly bugfix and improvements release. Nonetheless, some new features exists, the most interesting are: * proper COW mappings handling * full packet sockets support, thus supporting the tcpdump tool * the --shell-job option, which makes it possible to dump apps launched from one shell and restore them in another Some features are available with the custome kernel, but the good news is that now _all_ of the patches we need are in one of the -next trees or in the -mm one, and thus have good chances to get merged in 3.8 (or soon after it). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We need to test every even index (which represents a slave peer) thus use modulo operation here. Reported-by:
Alexander Kartashov <alekskartashov@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 10 Dec, 2012 8 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
No spaces between chars and no 0x-s. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
IPC shared memory data is aligned by 32 bits. Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The dedicated prepare_and_sigreturn makes code harder to read. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We have 3 calls for that, two called directly from cr-restore, one -- from one the former. Clean this mess and write short comments on each stage. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 06 Dec, 2012 11 commits
-
-
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
Use direct name assignment, it's enough. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This thing on pstre_item was created to carry task-specific information across the "restore" code-flow. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The error handling was not obvious. Clean it up. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
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>
-
Cyrill Gorcunov authored
The watch target might be a deleted file. In this case we can't re-create it on restore procedure. A typical scenario ------------------ fd = inotify_init1() wd = open(path) inotify_add_watch(path) unlink(path) ... checkpoint ... here we have a @path which is unlinked but still present in inotify watch list because inode is not yet freed. And if the program is killed after checkpoint the last reference to a path get eliminated and inode get freed from the kernel memory. Thus any furher attempts to open the path via file handle (note that file handle can't be used to create new file, the kernel doesn't permit that) will simply fail. So if plain opening via file handle failed we assume that at least the file might be in our ghost files list (we're optimists, right?) and if we successed we simply use a path generated by ghost file engine for us. v2 [by xemul@]: - gather reference to ghost file remap early Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Because we need to lookup for ghost files from inotify system where we only have device/inode as a key, we save dev/ino in ghost image entry. Note we use in-kernel format for device to be consistent with inotify and mount related code base. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
The remap_put will be needed to defer unlinking of ghost files if they are referred from inotify system. The lookup_remap is needed to figure out if the watch target the inotify has present in ghost files list. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We will need to use it in inotify code. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 05 Dec, 2012 1 commit
-
-
Pavel Emelyanov authored
No need in function-wide fd variable for copying file. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 04 Dec, 2012 9 commits
-
-
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>
-
Cyrill Gorcunov authored
Since fdinfo patches were merged to -mm tree the output format has been slightly changed. So update our tool accordingly. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A value of signo is in [1, SIGMAX]. Currenly signals are enumirated from 1 to SIGMAX, but SIGMAX is not included. This patch fixes this mestake. v2: * save backward compatibility * set a correct value of SIGMAX = 64. It can not be in a separate patch, because a format is changed again. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When resetting nr_in_progress for next stage no need in waking up anyone. Nobody waits for it yet :) Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Switching to a new stage is 4-step procedure which deserves its own helper. Besides, now the information about how many tasks participage in each stage is collected in one place. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's better to init it closer to the rest of rst orchestration. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-