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
2ba384e8
Commit
2ba384e8
authored
Nov 20, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rst: Add comment about old memory unmap
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
c3b9448c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
restorer.c
pie/restorer.c
+13
-1
No files found.
pie/restorer.c
View file @
2ba384e8
...
...
@@ -530,7 +530,19 @@ void __export_unmap(void)
/*
* This function unmaps all VMAs, which don't belong to
* the restored process or the restorer
* the restored process or the restorer.
*
* The restorer memory is two regions -- area with restorer, its stack
* and arguments and the one with private vmas of the tasks we restore
* (a.k.a. premmaped area):
*
* 0 TASK_SIZE
* +----+====+----+====+---+
*
* Thus to unmap old memory we have to do 3 unmaps:
* [ 0 -- 1st area start ]
* [ 1st end -- 2nd start ]
* [ 2nd start -- TASK_SIZE ]
*/
static
int
unmap_old_vmas
(
void
*
premmapped_addr
,
unsigned
long
premmapped_len
,
void
*
bootstrap_start
,
unsigned
long
bootstrap_len
)
...
...
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