- 11 Mar, 2014 9 commits
-
-
Andrey Vagin authored
It's going to be used for restoring namespaces. For example we need to enumirate the ns_ids list for restoring mount namespaces. 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>
-
Alexander Kartashov authored
The implementation of bit operations for ARM isn't actually architecture-specific so it would rather be shared with the upcoming port for AArch64 that won't provide optimized implementation of bit operations. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Reviewed-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
Documentation: remove the linker command line switch --static from the final step described in the cross-compilation guide Static linking of the binary criu isn't supported any more. Reported-by:
riya khanna <riyakhanna1983@gmail.com> 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 Reviewed-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Alexander Kartashov authored
This patch should simplify the routine interface change in the following patch. Signed-off-by:
Alexander Kartashov <alekskartashov@parallels.com> Reviewed-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
pre_dump_one_fanotify calls for parse_fdinfo_pid_s where fsn_params mut not be NULL, otherwise we get nil dereference. Fix it by passing a real variable instead. Reported-by:
Pavel Tikhomirov <snorcht@gmail.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
Here is a regresion test cae for commit 1934e1a9 Author: Andrey Vagin <avagin@openvz.org> Date: Tue Feb 18 16:53:00 2014 +0400 posix-timer: take into account that sival_ptr can be NULL (v3) Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Saied Kazemi authored
The pie.lds.S.in needs two minor changes to work with the gold (/usr/bin/gold) linker. These changes are compatible with /usr/bin/ld and make linker script more portable. The first change is adding a comma before /DISCARD/ so that the grammar won't be ambiguous. A Otherwise, gold treats it as a part of the assignment and would generate a syntax error about the "unexpected ':'". The second change is moving initialization of __export_parasite_args to inside the SECTIONS command because it references the dot symbol. Otherwise, gold would generate the error "invalid reference to dot symbol outside of SECTIONS clause. Signed-off-by:
Saied Kazemi <saied@google.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 07 Mar, 2014 7 commits
-
-
Pavel Emelyanov authored
Fix for the previous patch :\ 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
On this fs path can be resolved via proc, so even if we're asked to do force-irmap, try to go via regular resolve anyway. 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>
-
Tikhomirov Pavel authored
when decide that data is no longer needed, there are two cases: -if data neighbours previous block of "no needed" data, extend bunch block(it holds begining and size of concequent "no needed" data) by length of curent block and go next. -if data not neighbours bunch block(or bunch block size will be bigger than MAX_BUNCH_SIZE), than we punch bunch block and set bunch block to curent block. in the end make cleanup to punch last bunch block. changes in v1: punch_hole takes whole page_read make restriction more precise Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 06 Mar, 2014 5 commits
-
-
Cyrill Gorcunov authored
Otherwise we migh propagate previous vfi status to vmas which actually don't match. | (00.005471) 0x2b79227d6000-0x2b79227d8000 (8K) prot 0x5 flags 0x22 off 0 reg vdso ap shmid: 0 | (00.005473) 0x2b79227d8000-0x2b79227da000 (8K) prot 0x3 flags 0x22 off 0 reg vdso ap shmid: 0 | (00.005475) 0x2b79227f1000-0x2b79227f2000 (4K) prot 0x3 flags 0x22 off 0 reg vdso ap shmid: 0 | (00.005476) 0x2b79227f2000-0x2b79227f4000 (8K) prot 0x3 flags 0x22 off 0 reg vdso ap shmid: 0 Tested-by:
Pavel Tikhomirov <snorcht@gmail.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
No need to check opts.use_page_server, because in write_pagemap_loc write is local anyway. it appeared that on page-server when saving pages to images opts.use_page_server=true and no auto-dedup started, so images were not null as expected. Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
The s_dev value we see in irmap is get from proc file and is raw kernel dev_t. We compare this value to the device get from stat syscall, which is old-style dev_t (with less bits for minor). Thus, need to convert kernel dev_t to stat's dev_t for proper comparison. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
When migrating container with copying its FS, the inode numbers and thus their handles wil change. This will make the restore of inotify/fanotify fail, since they do it via fhandles. We've already faced the problems with fsnotifies on NFS -- they don't work there. To address this an irmap cache is created on pre-dump, so to resolve the issue with changed inodes during migration, we can force the irmap cache build. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
There's a standard way of doing this -- the MSG_WAITALL flag that works even for TCP sockets. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 04 Mar, 2014 2 commits
-
-
Pavel Emelyanov authored
This reverts commit 66ab5e1a. After Andrey's fixes that create mount points before dropping old mounts and going to pivot_root, this patch is not needed. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
This should be done before restoring a mount tree. This patch is a part of the series about moving pivot_root, which has been committed. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 28 Feb, 2014 17 commits
-
-
Cyrill Gorcunov authored
To setup cpu capability mask. 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
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
v2: check that plain file opened on tempfs Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
We are using tar for resting tmpfs. Currently we execute tar from a restored root, but nobody guarantees that it is there and that it's really tar. We don't have reason to change root too early. Lets live in a source root as long as we can, because we can be sure that it's consistent. https://bugzilla.openvz.org/show_bug.cgi?id=2870 v2: remove redundant chdir() Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
We are going to restore mounts before changing root. For that the current dir is changed in a new root and mounts will be restored by relative paths. v2: don't use snprintf Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrey Vagin authored
We are going to make pivot_root after restoring mount name-space, so relative paths will be used for mountpoints. v2: print correct root in a error message 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
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
Use maps04, on tmpfs, check if size of pages image is zero in the end Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
if option --auto-dedup is set on restore, then as soon as page is restored it will be punched from the image. open image in O_RDWR mode Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tikhomirov Pavel authored
Signed-off-by:
Tikhomirov Pavel <snorcht@gmail.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Sometime, especially when testing, we migrate checkpointed tasks between nodes which have different CPU capabilities. In particular some CPUs have xsave feature while others -- do not. So to be able to continue migration procedure even in such conditions one should specify --cpu-cap ^fpu on command line which would force criu to restore FPU state ignoring extended status present in image file. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
This option will serve to manage CPU capabilities to be matched/ignored on restore procedure. At the moment we introduce 'fpu','all' capability arguments. By default 'all' is set. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
At the moment we refuse to restore if CPU mismatch at FPU related features. Strictly speaking this is not required. We can allow to restore on the node with xsave capability even if the node was created on cpu which has fxsave capability only. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-