- 29 Jan, 2014 7 commits
-
-
Pavel Emelyanov authored
When we can't stat socket name with ENOENT errno this means, that the socket is bound and unlinked. Don't drop the whole socket info, just treat it as nameless. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
@vma_area_list::longest is in pages not bytes. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This test fails when run in ns: (00.300947) 1: Error (util.c:568): exited, status=1 (00.300964) 1: Error (cr-restore.c:1067): 5 exited, status=1 (00.300989) 1: Error (mount.c:637): Can't restore tmpfs content (00.301005) Error (cr-restore.c:1602): Restoring FAILED. Reason for failure -- tar is spawned in new mount namespace where it can not be found (bug #2870). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
This test does a few operation in a loop * create a mapping with random flags * touch a few pages in a new mapping, if it's writable This test has two processes. The second process goes a predefined value of steps behind the first one. When we need to check the result, we stop the first process, wait until the second process come to the same point and compare these processes. The processes are dumped in different states, but at the end both processes must be in the same state. bash -x test/zdtm.sh -s -i 5 -r transition/maps007 ... (00.743662) Error (page-read.c:107): Missing 139773474525184 in parent pagemap, current iov: base=7f1f8c4cf000,len=4096 (00.743696) Error (page-xfer.c:523): Hole 0x7f1f8c4c5000/4096 not found in parent (00.744196) Error (mem.c:331): Can't dump page with parasite (00.758201) Error (cr-dump.c:1828): Dumping FAILED. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
verify decline in size of second parent-level image file Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
check if size of second parent-level image become smaller Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
If we write a page into image and punch it from parnet, checking only one level down is not enough -- the iovec can reside deeper. That said, make the hole punching be recursive. Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 28 Jan, 2014 1 commit
-
-
Pavel Emelyanov authored
The bugfix period after 1.1-rc1 seems to be over. With this version we pin down the API to plugins and libcriu.so. Next steps will be tied with live-migration usecase for CRIU :) Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 24 Jan, 2014 6 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
It's no longer needed. All parent manipulations are done in-place using CR_PARENT_LINK name. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When writing pagemaps to page-server we want both page-*.img and pagemap-*.img to be on remote host. But the subsequent pre-dump/dump with parent images will try to access pagemap-*img-s to check for hole dumped being present in it. To handle this, move checks for hole being backed by something in parent into page-local-xfer. In case of page-server dump it will be page-server who will check the holes when writing them. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
because eof in restore means that we don't have "must have" data, so it mean error exit, but in dedup, it's ok not to have data we seek, so we continue returning normally also it's used that if off < pr-cvaddr then no eof happened and if eof happened then off >= pr-cvaddr(then return of seek_pagemap_page is 0) Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> 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>
-
- 23 Jan, 2014 4 commits
-
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
It's useful, if you like execute bash -x zdtm.sh. zdtm_sep isn't interesting for debugging needs. 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>
-
Pavel Emelyanov authored
The vaddrs should be %x. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 20 Jan, 2014 4 commits
-
-
Pavel Emelyanov authored
The feedback we got helped us to improve several issues all over the criu code. And we have some more stuff to get fixed before we can make a good release. That said, let's go ahead with the -rc2. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kir Kolyshkin authored
Make sure we have a clear message why build it failing, as there are repeated questions at criu@ mailing list. Before this patch: [kir@kirpad Documentation]$ make GEN criu.8 make: *** [criu.8] Error 127 After: [kir@kirpad Documentation]$ make /bin/sh: line 1: xmltos: command not found make: *** [check] Error 1 Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
It's ugly but should work for now. Strictly speaking I need to rework the complete make engine used in zdtm. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Tested-by:
Andrew Vagin <avagin@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
It's required for dumping fpu state [root@avagin-fc19-cr crtools]# bash test/zdtm.sh -d -P -i 2 static/fpu00 Execute zdtm/live/static/fpu00 ./fpu00 --pidfile=fpu00.pid --outfile=fpu00.out Dump 8411 Dump 8411 Check results 8411 01:29:30.550: 8411: FAIL: fpu00.c:78: 0.806165 != -nan (errno = 11 (Resource temporarily unavailable)) Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 16 Jan, 2014 5 commits
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
- drop '\' and ';' after the while(0) - drop empty line - use sizeof(*ptr) Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Otherwise it's almost unreadable mess. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
./test/zdtm.sh -i 2 -P ns/static/env00 v2: make the help message a bit more detailed Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
We have a big mistake in how we track for ptes to be SOFT_DIRTY -- no need in these checks if the --track-mem is not given. While fixing this, remember proper checks for the kernel memory tracker. Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Reported-by:
Tim Schürmann <info@tim-schuermann.de> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 15 Jan, 2014 1 commit
-
-
Andrey Vagin authored
I don't why it is required here, but make doesn't work w/o it make[2]: Leaving directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/live/static'> make[1]: Leaving directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/live'> set -e; for d in lib live; do make -C $d default; done make[1]: Entering directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/lib'> make[1]: *** No rule to make target `default'. Stop. make[1]: Leaving directory `<https://10.30.26.89/job/CRIU/ws/test/zdtm/lib'> make: *** [default] Error 2 Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 14 Jan, 2014 3 commits
-
-
Andrew Vagin authored
These files doesn't have own rules Signed-off-by:
Andrew Vagin <avagin@openvz.org> Acked-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
While doing pre-dump we don't do proper VDSO fixups, thus at this stage we may fail the should_dump_page() checks -- it will tread VDSO pages are 'regular' and may skip dumping some of them. This is not bad as is, but the subsequent dump will properly spot VDSO are and will try to dump _all_ pages from it. And if checks for soft-dirty will report that some pages are clean, dump will try to locate those in parent images and would fail. Acked-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>
-
- 13 Jan, 2014 1 commit
-
-
Pavel Emelyanov authored
If we're doing the pre-dump command we don't have the tasks' IDs collected, so we have the current_ns_mask uninitilized. Thus we create parasite transport socket in criu's namespace always and pre-dump of task, sitting in foreing net namespace may hang. From the "performance" point of view, it's easier to always create transport socket in victim's namespace, rahter than getting the current_ns_mask. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 11 Jan, 2014 8 commits
-
-
Kir Kolyshkin authored
Broken by my commit 1fa0c0c0. I swear I was not drunk. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There is no way in options to make page server send data to another page server -- the address/port ones would apply to local page server. Thus there is no need to open generic xfer in page server, just go to local one and avoid confusion 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> Acked-by:
Andrew Vagin <avagin@parallels.com>
-
Kir Kolyshkin authored
While timestamps can be handy, they clutter output for normal users. Let's print them only when verbosity (-v) is increased from default. Currently, default is 2 (-vv) so for timestamps one should use -vvv or -v3. Alternatively, we could introduce a separate --timestamps option. Personally, I find it more handy for timestamps to be tied to log level. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kir Kolyshkin authored
This is a slight refactoring of commit 7de96526, which just simplifies initialization of 'off' variable, and adds the comment why we do so. Should make the next patch easier to read. Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Kir Kolyshkin authored
Current description of -v[vvv] was taken from criu-log.h comments and describes specific log levels used by pr_* functions. The problem is -vX includes all previous X-1, X-2... levels. Say, -vvvv description says "debug only", while in fact it is not "only". Fix accordingly. Also, removed -v0 description as it is useless. What -v0 in fact does is it sets the log level to default -- same as if -vXXX is not used. In addition, change a delimiter between option alternatives from comma to a vertical bar in criu --help output, to be in line with the rest of usage output. Signed-off-by:
Kir Kolyshkin <kir@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-