- 14 Jan, 2015 2 commits
-
-
Ruslan Kuprieiev authored
pycriu is a python package, that, for now, consists of rpc module and images package. rpc module contains data structures for interacting with CRIU RPC. images package contains methods for loading\dumping criu images. See a big comment below in pycriu/images/images.py file. Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
This script is needed to generate python module from include/magic.h file, that contains dicts with magic numbers that we put into our criu *.img files. Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 13 Jan, 2015 1 commit
-
-
Pavel Emelyanov authored
The newer cleanups in fd inherit code need every file-desc to have non-NULL ops. This hunk was lost in tty code in the very beginning. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 12 Jan, 2015 11 commits
-
-
Mark O'Neill authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Saied Kazemi authored
When restoring a pair of veth devices that had one end inside a namespace or container and the other end outside, CRIU creates a new veth pair, puts one end in the namespace/container, and names the other end from what's specified in the --veth-pair IN=OUT command line option. This patch allows for appending a bridge name to the OUT string in the form of OUT@<BRIDGE-NAME> in order for CRIU to move the outside veth to the named bridge. For example, --veth-pair eth0=veth1@br0 tells CRIU to name the peer of eth0 veth1 and move it to bridge br0. This is a simple and handy extension of the --veth-pair option that obviates the need for an action script although one can still do the same (and possibly more) if they prefer to use action scripts. Signed-off-by:
Saied Kazemi <saied@google.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Christopher Covington authored
The stack handling in the RUN_CLONE_RESTORE_FN macro for AArch64 was incorrect, resulting in a segfault of the restored process. With this change the pthread00 test case (and probably others) runs to completion and passes. Signed-off-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We have a nasty issue with it. Current code allocates these entries in shremap area one by one. We do NOT allocate any OTHER entries in this region, but if we will this array will be spoiled. Fortunately we no longer need shmem-infos as plain array, neither we need one in restorer. So just turn this into plain shared objects and collect them in a list. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The struct and find routine used to be use by restorer code. Now the former fully uses vmas and fd opened, so we can move the code into .c file not to spoil global namespace. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We have two places where we lookup the inherited-fd list by name and dup() the descriptor found. I propose to factor out this piece in a single inherited_fd() call. When we will want to support inheritance for sockets or any other files we'll simply add the inherited_fd() call there. I'm also thinking about moving the call to inherited_fd into generic level, but the open_path() routine doesn't allow to do it in a simple manner. Also we have not yet finished issue with files-vs-inodes mapping. Keeping all the logic in one function should make the solution simpler. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Mark A. O'Neill authored
Signed-off-by:
Mark A. O'Neill <mao@tumblingdice.co.uk> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Saied Kazemi authored
This patch adds code to the contrib/docker_cr.sh helper script for trying to determine the external bind mount file for dockerinit if the user has not explicitly specified it via the DOCKERINIT_BINARY environment variable. Signed-off-by:
Saied Kazemi <saied@google.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 30 Dec, 2014 6 commits
-
-
Andrew Vagin authored
Reported-by: Mr Travis Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
criu check --ms results in an error on a stock fedora 21 kernel. Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
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
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 26 Dec, 2014 7 commits
-
-
Andrey Vagin authored
This job does three iterations. We need to write about 0.5Gb of images for maps04. This is too much for our test VM and other tests start fail due to timeout. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
In this mode we test if target cpu has all features present in image file but do not require bit to bit match: target cpu may be a new one with more features present. 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>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Restoring AIO is quite simple. Once all VMAs are put in their places we can call io_setup() to let kernel create the context back and then move the ring into proper place. Another thing we should "restore" is the context ID. But the thing is, upon ring creation kernel repots the ring start address as this ID. And there's a patch in the -next tree that changes the ID when we remap the ring. That said after AIO context creation and ring remap we need to check that the new ID is seen by the kernel. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When AIO context is set up kernel does two things: 1. creates an in-kernel aioctx object 2. maps a ring into process memory The 2nd thing gives us all the needed information about how the AIO was set up. So, in order to dump one we need to pick the ring in memory and get all the information we need from it. One thing to note -- we cannot dump tasks if there are any AIO requests pending. So we also need to go to parasite and check the ring to be empty. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 25 Dec, 2014 4 commits
-
-
Cyrill Gorcunov authored
Our CPU_CAP_s are bitmaps so if cpuinfo image is present but we require only FPU to check we need to check this bit being sole on comman line. It was a typo in first place which caused statement to be false always (it's not a problem though and not a @stable candidate because with this mistake we fall into strict match cpu mode). Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
We may not have permissions for this. Reported-by: Mr Jenkins Fixes: 7dbd38db ("zdtm: set additional groups along with uids and gids") Cc: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
/tmp/ccq2xzf8.s: Assembler messages: /tmp/ccq2xzf8.s:5748: Error: thumb conditional instruction should be in IT block -- strexeq r1,r2,[r3]' Cc: Alexander Kartashov <alekskartashov@parallels.com> Cc: Ruslan Kuprieiv <kupruser@gmail.com> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We will need to detect aio mappings soon, so this is a preparation, that makes future patching simpler. Also move aufs stat-ing into aufs code to keep more aufs logic in one place. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 24 Dec, 2014 2 commits
-
-
Andrew Vagin authored
We may not have permissions for this. Reported-by: Mr Jenkins Fixes: 7dbd38db ("zdtm: set additional groups along with uids and gids") Cc: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Andrew Vagin <avagin@openvz.org> Acked-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Don't use an uninitialized variable to create a path pattern. v2: fix the comment v3: don't use readlink -m, which isn't supported by busybox Cc: Christopher Covington <cov@codeaurora.org> Reported-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Andrey Vagin <avagin@openvz.org> Reviewed-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 22 Dec, 2014 7 commits
-
-
Andrew Vagin authored
Cc: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Andrew Vagin <avagin@openvz.org> Tested-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Ruslan Kuprieiev authored
Lets simulate some errors and check what error will be returned by service. v2, fix tests accordingly to new errorlist v3, fix tests accordingly to new errorlist, again Signed-off-by:
Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@parallels.com>
-
Pavel Emelyanov authored
It turned out we didn't have one, though recent 3.19-merge-window kernel would crash on that test. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@parallels.com>
-