2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-28 21:07:43 +00:00

9635 Commits

Author SHA1 Message Date
Andrey Vagin
25434884e1 Dump and restore sigactions (v2)
A parasite code dumps all sigactions in sigact.pid.

v2: remove hard code for sizeof(sigset_t)

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-11-30 22:04:09 +04:00
Andrey Vagin
287b7d2aa9 Generalization execution of parasite code.
It will be used for dumping sigactions too.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-11-30 22:04:05 +04:00
Andrey Vagin
bc1f9d728a Skip a standard destriptor only if it's tty (v2)
ZDTM tests redirect standart descriptors to /dev/null

v2: * Skip tty only if it's a standard descriptor.
    * No strcmps on names.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-11-30 22:04:00 +04:00
Cyrill Gorcunov
89dde261c2 kernel: Add rewviewed tag
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-30 10:07:10 +04:00
Cyrill Gorcunov
82fe01c35d kernel: Update prctl patch
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-30 01:41:43 +04:00
Cyrill Gorcunov
24f33b86ea kernel: Add Ack and Review for a patch
So I wont forget.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-30 01:36:57 +04:00
Cyrill Gorcunov
5e2b5f098b kernel: Update kernel patches series
Tossing patches in git repo is a pure madness,
so stick back with quilt tool.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-30 01:13:38 +04:00
Cyrill Gorcunov
b8638a70ee Update README
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-30 01:11:00 +04:00
Cyrill Gorcunov
4dc0736697 dump,restore: Dump and restore vDSO area from userspace
There is no need to force kernel to remap vDSO area, we
can do that from the user-space as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-29 16:39:48 +04:00
Cyrill Gorcunov
f6ae59cdde test: Add trivial vDSO test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-29 16:37:43 +04:00
Cyrill Gorcunov
3d55b9d125 dump: Drop VMA_DUMP_ALL flag
It has been used at very early stage when
no mincore call was implemented. Not needed
anymore -- so drop it out.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-25 18:39:58 +04:00
Cyrill Gorcunov
42a661f5e4 kernel: Update patch series
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-25 18:35:54 +04:00
Pavel Emelyanov
bb3d02c281 crtools: Take MINCORE_ANON pages into account
Reduce the pages-xxx.img file size significantly (from 2.1M to ~100K for simple counter test)
by not dumping private file pages, that have not yet changed from its file prototype.

If you'll have problems with it, just let me know and comment the definition of PAGE_ANON not
to block your work.

This uses the implemented earlier flag from mincore.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-25 18:31:18 +04:00
Pavel Emelyanov
605220e7f7 crtools: Cleanup the 'whether I should dump this page' decision
Just introduce a helper for further patches.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-25 18:30:44 +04:00
Cyrill Gorcunov
9eeb003766 util: Add K/M/G bytes helpers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-24 15:07:03 +04:00
Pavel Emelyanov
47b7404d73 crtools: Don't save vma's inode info in image
This one isn't used on restore process, since the file mapped is
stored in the fdinfo part of the images.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 14:03:24 +04:00
Pavel Emelyanov
9299d53d32 crtools: Don't show vma fd in --show output
This entry is for restorer only. In image the fd is -1 always.

Signed-off-by; Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 14:03:20 +04:00
Pavel Emelyanov
fb44c9d82b crtools: Don't hold pid on vma image
It's pointless. All vmas are stored in the per-pid image file.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 14:03:14 +04:00
Cyrill Gorcunov
64f867f54e dump: Use absolute paths for page dump file
Otherwise the dumpee migh be unable to locate it.

Reported-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 13:10:37 +04:00
Cyrill Gorcunov
f139959ead restore: Don't use +x permission for .out files
We don't execute them anymore.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 01:22:37 +04:00
Cyrill Gorcunov
7ce2761007 restore: Check for incomplete reading of vma-entry
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 01:18:01 +04:00
Cyrill Gorcunov
2beec2268b restore: Update error messages
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 01:12:38 +04:00
Cyrill Gorcunov
818651b22a restore: Continue restore even if sys_prctl failed
Need this fix until testing kernel get updated.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 00:58:21 +04:00
Cyrill Gorcunov
7b8dee7275 restore: Use pr_perror instead of plain perror
This prints line number as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 00:56:58 +04:00
Cyrill Gorcunov
ad93e59d57 restore: Drop redundant rst_mutex_lock
It leads to circular lockup.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-23 00:51:17 +04:00
Cyrill Gorcunov
122cae2111 dump: Add -k (kill dumped) option
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 22:09:28 +04:00
Cyrill Gorcunov
d3a30d6bb7 kernel: Update PR_ patch
It happened to not flush error code even if
syscall successed. Fixed.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 21:13:08 +04:00
Cyrill Gorcunov
5aa22f131b dump: Print error codes if dumper failed in parasite section
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 20:07:20 +04:00
Cyrill Gorcunov
84e57b2a66 restore: Add prctl validation
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 19:25:35 +04:00
Cyrill Gorcunov
2e00d0199d docs: Add internals details
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 16:48:57 +04:00
Cyrill Gorcunov
60c9235f6b Update TODO
Drop bullets which are implemented

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 14:36:00 +04:00
Cyrill Gorcunov
ea423aa56f test: Update makefile clean target
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:29:27 +04:00
Cyrill Gorcunov
477adf0cf2 test: pipes -- Drop unused vars
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:21:48 +04:00
Cyrill Gorcunov
8ea8d4eee5 test: pipes -- Add a second pipe
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:20:05 +04:00
Cyrill Gorcunov
46083e9e00 restore: Don't forget to skip data on attached pipes
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 13:12:30 +04:00
Cyrill Gorcunov
0cd579abd2 Merge branch 'tests'
* tests:
  test: Add test-pthreads test
2011-11-22 01:51:09 +04:00
Cyrill Gorcunov
4368d57c48 test: Add test-pthreads test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 01:50:45 +04:00
Cyrill Gorcunov
c704fc272e util: Make VMA proto being printed with 8 char width
Fancy output.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-22 00:13:04 +04:00
Cyrill Gorcunov
118b665558 Merge branch 'tests'
* tests:
  test: Add test-pipe-async test
  teste: Add test-shmem-three-async test
  test: Update shmem more frequently
  test: Add printing header
  test: Add test-shmem-async test
  test: Add test-rnd-from-file test
  test: Add test-counter test
  test: Drop old tests
2011-11-21 23:56:08 +04:00
Cyrill Gorcunov
5e5cb3b321 test: Add test-pipe-async test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 23:55:37 +04:00
Cyrill Gorcunov
22f8986902 teste: Add test-shmem-three-async test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 23:45:35 +04:00
Cyrill Gorcunov
1355c7d29a test: Update shmem more frequently
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:58:02 +04:00
Cyrill Gorcunov
e66efb11a1 test: Add printing header
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:56:12 +04:00
Cyrill Gorcunov
8650847b83 test: Add test-shmem-async test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:53:18 +04:00
Cyrill Gorcunov
d2f382e729 test: Add test-rnd-from-file test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 22:42:59 +04:00
Cyrill Gorcunov
37e73d6a1d test: Add test-counter test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 21:25:43 +04:00
Cyrill Gorcunov
6357ad403f restore: Fix up message on fixing maps
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:38:35 +04:00
Pavel Emelyanov
985990de23 crtools: Show 6 page va-s per line in [Pages] section
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:33:55 +04:00
Cyrill Gorcunov
af4eb76bb0 test: Drop old tests
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:27:58 +04:00
Pavel Emelyanov
92a08bb25a crtools: Show shmem dump file contents
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-11-21 20:23:22 +04:00