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

70 Commits

Author SHA1 Message Date
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
Cyrill Gorcunov
609e431376 Add cr_options structure
We will need more options since the
tool should support both cgroups freezer
and a regular task stop/dump/restore/continue
transition.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 01:50:19 +04:00
Cyrill Gorcunov
374ec7604e parasite: Fix sign lost at error checking
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-04 01:48:17 +04:00
Cyrill Gorcunov
1063590662 dump: Fix up error jump on fchmod failure
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-03 12:04:09 +04:00
Cyrill Gorcunov
f170895975 dump: Allow parasite-dumper to write pages with non-privileged process
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-03 11:52:13 +04:00
Cyrill Gorcunov
8bbed96981 todo: Process name restoration is complete
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-01 20:01:34 +04:00
Cyrill Gorcunov
8f0af4f8a6 Restore task's command line as well
Note binary format for core file is changed.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-10-01 13:24:34 +04:00
Cyrill Gorcunov
a00ef142f8 Use pr_err for error printing
To follow kernel style

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:37:12 +04:00
Cyrill Gorcunov
f83520aa59 Update TODO
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:36:21 +04:00
Cyrill Gorcunov
6bd95e402d Add TODO
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:26:24 +04:00
Cyrill Gorcunov
c426ba3721 Update to README
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 14:25:37 +04:00
Cyrill Gorcunov
c704ab9064 test: Add anonymous shared memory test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 13:08:26 +04:00
Cyrill Gorcunov
65e9402d47 restore: Fix pipes restore if both pipe ends are used by former process
In case if the former process used both pipe ends we fall
into endless loop since the 'users' never reaches 1. So
to resolve this during the pipe collectioning we check if
both pipe ends were used by a former process and if so --
we connect first pipe end immediately in create_pipe and
connect the rest via  attach_pipe.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 09:00:45 +04:00
Cyrill Gorcunov
61a6eb781c restore: Make sure shmems are zeroified
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-30 01:13:16 +04:00
Andrew Vagin
d5d8d920dd make: Fix deps for non-parasite code
Without it parallel execution fails.

Reported-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2011-09-29 17:02:15 +04:00
Cyrill Gorcunov
34c2f562c3 Add crtools into gitignore
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 16:04:04 +04:00
Cyrill Gorcunov
98be6495c7 make: Move tests into test/ directory
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 16:03:36 +04:00
Cyrill Gorcunov
a2dd6deb3a git: Ignore swp files as well
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 13:16:30 +04:00
Cyrill Gorcunov
7f71fc32c6 Update .gitignore
Autogenerated files should be ignored by git.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 13:14:44 +04:00
Cyrill Gorcunov
843432fefd restore: Use pr_error instead of stderr output
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 01:24:23 +04:00
Cyrill Gorcunov
114d89cc89 restore: Use pipeid in pipe_info to match pipe_entry
To have similar naming scheme.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-29 00:50:09 +04:00
Cyrill Gorcunov
c3a05afafd test: Bring pipes back in testee-static
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 23:27:18 +04:00
Cyrill Gorcunov
58a4a82528 restore: Fix typo in try_fixup_file_map
vma_entry is already a pointer -- no need
for second ampersand.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 23:23:43 +04:00
Cyrill Gorcunov
11cf71c542 restore: Tune up fixup_pages_data
Use pr_panic if ending-zero page is missed
(also a few style tuneups).

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 21:20:53 +04:00
Cyrill Gorcunov
1293fb0f8e restore: Make should_restore_page being bool
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 18:44:46 +04:00
Cyrill Gorcunov
4727c73984 restore: Simplify try_fixup_file_map
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 16:49:59 +04:00
Cyrill Gorcunov
6978194642 restore: Use shmid instead of id, as declared in image file
To not bring in varying member name with same meaning.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2011-09-28 15:55:12 +04:00