[CRIU] [PATCH 27/32] tools: cpt2 -- Add "write" routines for virtual memory areas
Cyrill Gorcunov
gorcunov at openvz.org
Sat Mar 30 17:43:05 EDT 2013
Here we introduce writing of memory related stuff. In particular
VMAs areas, memory map and pages.
Because shared VMAs are to be written separately we gather them
into own hash.
Pages data read from openvz image file and wrote to page criu files,
this is inefficient and better to teach criu to work with page data
from openvz image file directly. But it's a target for further
optimization, for a while lets stick with trivial approach.
Also we convert only regular pages, other type of pages (iterator)
are to be converted someday latter.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
tools/cpt2/src/include/mm.h | 5 +
tools/cpt2/src/mm.c | 441 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 446 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0027-tools-cpt2-Add-write-routines-for-virtual-memory-are.patch
Type: text/x-patch
Size: 11429 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130331/fe69f8f8/attachment-0001.bin>
More information about the CRIU
mailing list