criu/include
Pavel Emelyanov 8801f59615 mem: Protobuf format for page dumps
Since now we drain pages out of parasite, we can invent any format for
page dumps. Let is be ... prorobuf one! :)

Another thing to keep in mind, is that we're about to use splices and
implement iterative migration, so it's better to have actual pages be
page-aligned in the image.

And -- backward compatibility. That said the new format is:

1. pagemap-... file which contains a header (currently with a ID of
   the image with pages, see below) and an array of <nr_pages:vaddr>
   pairs. The first value means "how many pages to take from the
   file with pages (see below)" and the second -- where in the task
   address space to put them. Simple.

2. pages-... file which containes only pages one by one (thus aligned
   as we want).

This patch breaks backward compatibility (old images with pages wil
be restored and then crash). Need to do it before v0.5 release.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-03-14 18:16:41 +04:00
..
bug.h Move BUG_ONs to include/bug.h 2013-02-27 15:43:31 +04:00
compiler.h include/compiler.h: Cleanup 2013-02-15 17:34:38 +04:00
cpu.h cpu: Make cpu routines being per-acrh 2013-02-18 18:42:08 +04:00
crtools.h mem: Protobuf format for page dumps 2013-03-14 18:16:41 +04:00
eventfd.h files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
eventpoll.h files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
fifo.h files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
file-ids.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
file-lock.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
files-reg.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
files.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
fsnotify.h fsnotify: Add dumping of fanotify objects 2013-01-15 18:34:50 +04:00
image.h image: Move magic numbers to magic.h 2013-03-06 00:29:29 +04:00
inet_diag.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
ipc_ns.h ns: Introduce ns descriptors 2013-01-15 23:24:01 +04:00
kcmp-ids.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
libnetlink.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
list.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
lock.h lock: Include bug.h instead of big util.h 2013-02-27 15:43:33 +04:00
log-levels.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
log.h log: Make pr_err_once to use pr_err 2013-01-14 14:26:07 +04:00
magic.h mem: Protobuf format for page dumps 2013-03-14 18:16:41 +04:00
mount.h ns: Introduce ns descriptors 2013-01-15 23:24:01 +04:00
namespaces.h rst: Evaluate per-task clone mask early 2013-01-19 01:16:19 +04:00
net.h ns: Introduce ns descriptors 2013-01-15 23:24:01 +04:00
netfilter.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
packet_diag.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
page-pipe.h mem: Protobuf format for page dumps 2013-03-14 18:16:41 +04:00
parasite-syscall.h mem: Protobuf format for page dumps 2013-03-14 18:16:41 +04:00
parasite.h mem: Drain memory from parasite before dumping it into file 2013-03-01 20:13:11 +04:00
pipes.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
proc_parse.h vma: Introduce list-of-vmas object 2013-03-01 20:11:51 +04:00
protobuf.h mem: Protobuf format for page dumps 2013-03-14 18:16:41 +04:00
pstree.h pstree: Add general core_entry_free helper 2013-02-22 15:41:27 +04:00
ptrace.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
rbtree.h x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
restorer.h fpu: Move definitions to asm/fpu.h 2013-02-18 18:42:08 +04:00
shmem.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
sigframe.h include/restorer.h: moved machine-independent sigframe structs to the file include/sigframe.h. 2013-01-09 17:33:59 +04:00
signalfd.h files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
sk-inet.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
sk-packet.h files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
sk-queue.h x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
sockets.h headers: Change "../protobuf/" to "protobuf/" 2013-02-15 17:33:06 +04:00
syscall-types.h rst: Evaluate per-task clone mask early 2013-01-19 01:16:19 +04:00
sysctl.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
tty.h tty: require stdin to be a terminal only if shell_job is set 2013-01-22 22:45:31 +04:00
unix_diag.h x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
util-net.h headers: Unify include guards (in comments) and a few fixes 2012-12-25 22:40:24 +04:00
util.h Move BUG_ONs to include/bug.h 2013-02-27 15:43:31 +04:00
uts_ns.h ns: Introduce ns descriptors 2013-01-15 23:24:01 +04:00