- 12 Oct, 2012 3 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
After reworking sk showing on generic pb showers this one is not required. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
No need for memcpy here, it's plain integer value which need to be filled. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Oct, 2012 8 commits
-
-
Pavel Emelyanov authored
And write a test for them. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Stanislav Kinsbursky authored
This test set up two posix timers with different clocks: REALTIME and MONOTONIC. Both send signals. Signals are disabled before suspend. This makes overrun counters increasing. After restore tests enables signals, and make sure, that: 1) signal handler for both timers was called with proper arguments 2) time displacement for both timers is not greater than specified (10% by default). Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Acked-by:
Vladimir Davydov <VDavydov@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
A test allocates and filles one page, creates a new child, then compares pfn-s for both processes. v2: set a position on each iteration 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
Dumping them is performed via parasite, since calling the getgroups is the only way of getting the complete list. Currently the nr of groups to dump is limited explicitly with the size of shared memory between crtools and parasite. This is MUCH more that we have seen on real apps so far. Restoring is done early, before restorer blob not to carry the undefined array of grpous in there. This is OK, since groups do not affect us at that point and are not affected by subsequent creds restore. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Getting groups can be done vie proc, but there's only 32 on them, while task may have up to 65k :( We will use parasite for that and thus require this syscall definition. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Currently move there the secbits dumping, which is not dumped via misc-dumping command. This patch is required to support per-task groups dumping (setgroups/getgroups) -- we'll have to drain the groups from parasite. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There's a shared memory between crtools and parasite. No need in copying args back and forth, just get the args pointer in crtools and work on it. Where not possible (misc, fds drain) do explicit memecpy (to be fixed). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 10 Oct, 2012 1 commit
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 09 Oct, 2012 1 commit
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 08 Oct, 2012 5 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's already done in alloc_pstree_item() by recently merged commit. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
I believe this make sense to keep this structure in pstree.h where pstree related data lives. Also I've added some comments on struct pid members. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
To be close to the kernel naming. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- @list member closer to @children - add some comments on memebers - add space lines for members grouping Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 07 Oct, 2012 4 commits
-
-
Pavel Emelyanov authored
Just as for restorer, but simper, as the parasite logging is just sys_write_msg :) Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Remove the restorer-log and link log-simple into restorer blob. Now we can use the normal pr_foo API. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
It's supposed to be used by parasite and restorer blob. It has API equal to the core one -- with setfd, set_loglevel and (the main thing) print_on_level fn. It currently supports only strings, decimal and hex numbers (int and long). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 03 Oct, 2012 8 commits
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise "show" action become unreadable. 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>
-
Cyrill Gorcunov authored
This as well releases pb entry on error path, not a big deal since we're exiting in case of error but still. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
This is a bit fishy that we do init @children list here but not @list itself. Better be solid and init everything in one place. Also no need to poke @threads and @nr_threads, we're using xzalloc here anyway. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrey Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's a deep first search used here so the code can be shrinked. 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>
-
Stanislav Kinsbursky authored
Signed-off-by:
Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Oct, 2012 3 commits
-
-
Pavel Emelyanov authored
I find this handy. Looks-good-to: Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
cmd is declarated in parasite-head-x86-64.S __export_parasite_cmd: .long 0 Its size is 4 bytes, so it should be int instead of long. This patch fixes a bug in parasite execute, where a part of args are overwritten by cmd. memcpy(ctl->addr_cmd, &cmd, sizeof(cmd)); Reported-by:
Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise pty tests might fault. Reported-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 29 Sep, 2012 2 commits
-
-
Pavel Emelyanov authored
Call the fini stage even if the dump failed. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When dumping pages we use 3 commands for parasite -- prep, dump (per-vma) and fini. Open the pagemap file in prep, insteam of in each per-vma dump. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Oct, 2012 5 commits
-
-
Cyrill Gorcunov authored
The system termios structure and our PB equivalent defined quite different, while first defined as plain array we use dynamically allocated memory. Thus the use of min() macro is incorrect here and always produce the size of pointer. Fix it using the size of array from the system provided structure. The BUILD_BUG_ON will prevent from accidental changes. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Test pty03 is not yet ready for ns, will be addressed later. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
In case if we enter the new rootfs don't forget to mount devpts, otherwise ttys can't be connected. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
We don't need to umount each points one by one, if we are goning to do pivot_root(). """ pivot_root moves the root file system of the current process to the directory put_old and makes new_root the new root file system. """ So I suggest to do pivot_root() and then detach the old root, all other mount points will be unmounted automatically. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Victor Konyashkin authored
It's need add format to fprintf to avoid following error in Ubuntu 12.04: msg.c:59:2: error: format not a string literal and no format arguments [-Werror=format-security] Signed-off-by:
Victor Konyashkin <vkonyashkin@parallels.com> Acked-by:
Andrey Vagin <avagin@openvz.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-