- 10 Jan, 2012 4 commits
-
-
Cyrill Gorcunov authored
And add some comments. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
Signed-off-by:
Andrey Vagin <avagin@openvz.org> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Andrey Vagin authored
This code opens a log file and duplicates the descriptor to logfd, but forgets to close the first one. Signed-off-by:
Andrey Vagin <avagin@openvz.org> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 04 Jan, 2012 16 commits
-
-
Cyrill Gorcunov authored
Restorer does really restore shared memory (including page contents restore) only on master process, while all other processes do open such memory area via map_files/ procfs entry so that we might have a situation when shared VMA is present in some particular core-%d.img file but it's not listed in collected shmems array and find_shmem_by_pid will return NULL. This is perfectly fine, be ready for that. Another issue is that shared memory might look like CR_FD_SHMEM: /home/cyrill/projects/kernel/crtools/shmem-2641.img ---------------------------------------- 0x7f2200775000-0x7f2200776000 id 19664 0x7f2200776000-0x7f2200777000 id 19663 ---------------------------------------- So vma area is [x;y) range and we should distinguish two shmem lookup cases - one when we search for page in shmem area - second when we lookup shmem area in collected ranges They both have a different lookup conditions so single find_shmem splitted into two helpers find_shmem and find_shmem_page as appropriate. This patch finally fixes the three process asynchronious shared memory updates test-case. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
We might be needing to close the shmems file descriptor. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Just in a sake of consistency Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Style tuning, no func change Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Dumping procedure does check for VMA_ANON_SHARED so the same should be done at restore time. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
The remapping of /proc path to shmem should be done with pid of process which did mmap() call initially. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Also add a few more comments. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
And use SHMEMS_SIZE constant as well. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
In commit 99eb3d09 we started to use self-contained shared memory region but it revealed the problem that anonymous sgared mappings might be parsed by parse_maps incorrectly, so fix it and be ready to get anon-shared mappings. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 30 Dec, 2011 3 commits
-
-
Cyrill Gorcunov authored
Also make output a bit more fancy, as CR_FD_UNIXSK: unixsk-2440.img ---------------------------------------- fd 3 type 1 state 1 namelen 0 id 19406 peer 19407 fd 4 type 1 state 1 namelen 0 id 19407 peer 19406 fd 5 type 2 state 7 namelen 7 id 19408 peer 0 ---> [tst-sk] fd 6 type 2 state 7 namelen 0 id 19409 peer 0 fd 7 type 2 state 7 namelen 0 id 19410 peer 19411 fd 8 type 2 state 7 namelen 8 id 19411 peer 0 ---> [tst-sk1] ---------------------------------------- Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
It also tests for possible dup() call error. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 29 Dec, 2011 1 commit
-
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 28 Dec, 2011 8 commits
-
-
Pavel Emelyanov authored
Several places just need to open an image, thus the helper is OK to use. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
It duplicates the show_dump_file pointer. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
To follow rest of code - use !x for xalloc result tests - structure members are tab aligned - multiline assignments over structure members are aligned as well Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 27 Dec, 2011 6 commits
-
-
Cyrill Gorcunov authored
UNIX_PATH_MAX is a size of path, so max length should never be equal to such size. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
For better readability. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Since we're not system library - no underscopes in functions name until really needed and known to not clash with posix namespace - empty line between system headers and own headers for readability - extern for function prototypes Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
Drop USK_DEBUG, we have dprintk which is active if compiled with make DEBUG=1 Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
We provide such type in types.h. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
- 26 Dec, 2011 2 commits
-
-
Cyrill Gorcunov authored
This allows to use pr_debug and dprintk helpers. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-
Cyrill Gorcunov authored
For easier debugging. We can zap it at release time. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
-