Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
9df1786a
Commit
9df1786a
authored
Nov 27, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rst: Move and rewrite comment about how restorer blob is prepared
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
14915d01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
cr-restore.c
cr-restore.c
+12
-6
No files found.
cr-restore.c
View file @
9df1786a
...
...
@@ -1256,12 +1256,6 @@ static long restorer_get_vma_hint(pid_t pid, struct list_head *tgt_vma_list,
end_vma
.
vma
.
start
=
end_vma
.
vma
.
end
=
TASK_SIZE_MAX
;
prev_vma_end
=
PAGE_SIZE
;
/*
* Here we need some heuristics -- the VMA which restorer will
* belong to should not be unmapped, so we need to gueess out
* where to put it in.
*/
s_vma
=
list_first_entry
(
self_vma_list
,
struct
vma_area
,
list
);
t_vma
=
list_first_entry
(
tgt_vma_list
,
struct
vma_area
,
list
);
...
...
@@ -1628,6 +1622,18 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
SHMEMS_SIZE
+
TASK_ENTRIES_SIZE
+
self_vmas_len
+
vmas_len
+
rst_tcp_socks_size
;
/*
* Restorer is a blob (code + args) that will get mapped in some
* place, that should _not_ intersect with both -- current mappings
* and mappings of the task we're restoring here. The subsequent
* call finds the start address for the restorer.
*
* After the start address is found we populate it with the restorer
* parts one by one (some are remap-ed, some are mmap-ed and copied
* or inited from scratch).
*/
exec_mem_hint
=
restorer_get_vma_hint
(
pid
,
&
rst_vma_list
,
&
self_vma_list
,
restore_bootstrap_len
);
if
(
exec_mem_hint
==
-
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment