2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

4796 Commits

Author SHA1 Message Date
Cyrill Gorcunov
2f3999d6af Update TODO
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 21:36:12 +04:00
Cyrill Gorcunov
2c2fa9c29d kernel: Add reviewed-by tag for map_files
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 21:34:51 +04:00
Cyrill Gorcunov
118180451e crtools: Switch to getopt facility
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 19:43:52 +04:00
Cyrill Gorcunov
c2ac1d2f35 Update TODO
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 19:19:09 +04:00
Cyrill Gorcunov
a0f463c27d Move seize related functions into seize.[ch]
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 19:18:43 +04:00
Cyrill Gorcunov
c2bd177330 dump: Add comments on task seizing and stopping
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 18:57:13 +04:00
Cyrill Gorcunov
90160f5920 kernel: Check early that checkpoint header version is valid
As being pointed by xemul@

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 18:44:56 +04:00
Cyrill Gorcunov
2de7445205 kernel: Update clone-with-pid patch subject
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 18:15:58 +04:00
Cyrill Gorcunov
f08ba92df2 restore: Update real_pid comment
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 18:15:09 +04:00
Cyrill Gorcunov
7fab1b23fd kernel: Update clone-with-pid patch description
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 17:50:39 +04:00
Cyrill Gorcunov
c84be6af03 Update TODO
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 17:34:32 +04:00
Cyrill Gorcunov
d2f505f52c restore: Add some more comments
Add comments on real_pid member and pipe users counters.

Reported-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 17:31:52 +04:00
Cyrill Gorcunov
8b122598fe Zap xemul directory
No need for samples anymore

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 17:07:46 +04:00
Cyrill Gorcunov
a896bfd628 dump: Add some more comments on page dumping routines
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 16:36:50 +04:00
Cyrill Gorcunov
ba5aef005a kernel: Add patch description for /proc/$pid/stat addition
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 16:23:12 +04:00
Cyrill Gorcunov
9b6708e3a3 dump: Don't poke cr fdset with open/close needlessly
Reported-by: Pavel Emelyanov xemul@parallels.com
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 16:18:32 +04:00
Cyrill Gorcunov
cecd0ef138 utils: Inability to open map_files/ is fatal error
Reported-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 16:07:34 +04:00
Pavel Emelyanov
c416a033f9 Rename execute_image to prepare_and_execute_image
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 15:46:04 +04:00
Cyrill Gorcunov
640e5c46be dump: Call fsync only if needed
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 13:41:13 +04:00
Pavel Emelyanov
d48706328e Add comments on fd set
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 13:33:32 +04:00
Cyrill Gorcunov
69a7b9e7ce kernel: Add stack being found test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 12:03:49 +04:00
Cyrill Gorcunov
9977390e41 elf: Don't put core structure on stack
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 11:35:20 +04:00
Cyrill Gorcunov
147d2fd723 kernel: Move /proc/$pid/stat changes into a separate patch
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 00:37:19 +04:00
Cyrill Gorcunov
3530297a5b show: Fixup typos in printing mm data
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-13 00:31:02 +04:00
Pavel Emelyanov
1f14766919 Generalize file opening
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 18:34:15 +04:00
Pavel Emelyanov
5a397e8a59 Rework fdinfo readinf to use FILE *
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 18:30:04 +04:00
Cyrill Gorcunov
4389c021fc dump, kernel: Add some mm structure members into the dump
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 18:05:07 +04:00
Cyrill Gorcunov
ce65f2f718 dump, kernel: Add start/end_code data
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 16:02:36 +04:00
Cyrill Gorcunov
b2c4ebf207 kernel: Make sure brk area is found
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 13:33:20 +04:00
Cyrill Gorcunov
94789dcfc9 util: Show heap area
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 13:33:02 +04:00
Cyrill Gorcunov
f7e6e63b44 kernel, dump: Obtain brk value
Also re-make image to be 2 pages in size
which should be enough for basic params we
need to restore tasks.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-12 09:40:02 +04:00
Cyrill Gorcunov
116b00ee17 kernel: Restore explicit set of fs/gs
We can't wait until task get switched but need
to setup gs/fs by own. Also fixup cp_reg arguments
order otherwise zeros are written into registers instead
of proper values.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 19:11:27 +04:00
Cyrill Gorcunov
7d712407aa kernel: Explicit registers assignment
Since types might be changed one day

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 14:41:22 +04:00
Cyrill Gorcunov
c3553db68b kernel: Use ptrace helper to restore GPRs
This shrinks code a bit

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 13:37:08 +04:00
Cyrill Gorcunov
a997fcf635 kernel: Use set_fs helper to operate with ptrace
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 12:34:48 +04:00
Cyrill Gorcunov
572e8a1519 kernel, elf: Move arch dependant things into arch/
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 10:57:13 +04:00
Cyrill Gorcunov
ec9496c147 image: Use CKPT_ARCH_SIZE
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 10:10:07 +04:00
Cyrill Gorcunov
4b7a318322 dump: Prepare for new core_entry layout
core_entry layout is arch dependant.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-11 01:32:39 +04:00
Cyrill Gorcunov
68cc400790 kernel: Use __u32 for inkernel stuff
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 21:06:19 +04:00
Cyrill Gorcunov
8c4894a8a5 kernel: Restore FPU context if needed
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 17:06:51 +04:00
Cyrill Gorcunov
3135c94bb9 test: Add some basic fpu operation
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 17:05:31 +04:00
Cyrill Gorcunov
99466eb328 dump: Add dumping a tasks's flags
We need it to figure out if FPU was used
so that we need to restore context later.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-10 17:05:12 +04:00
Cyrill Gorcunov
6307ce67dc kernel: Update changelog for elf-checkpoint file
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 20:13:06 +04:00
Cyrill Gorcunov
e47408c93c kernel: Update binfmt patch
- Add check for chkp file header version and arch
 - Send SIGKILL on error properly

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 20:02:16 +04:00
Cyrill Gorcunov
ce5298188c restore: Update Elf checkpoint handling
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 19:02:15 +04:00
Cyrill Gorcunov
4278324dd4 Drop compiled file from repo
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 15:04:56 +04:00
Cyrill Gorcunov
2efb66d69a dump: Sanitize dumping message
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-06 14:07:48 +04:00
Cyrill Gorcunov
a97985ce95 kernel: Update elf handling to not unlink thread from parent
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 16:52:42 +04:00
Cyrill Gorcunov
e9075241e1 elf: Allow up to 1G of memory being stored on disk
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 14:43:59 +04:00
Cyrill Gorcunov
2f3c929aff dump: Add should_ignore_fd helper
We should ignore tty devices for a while.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 14:07:07 +04:00