Speed up kdat checks

Submitted by Pavel Emelianov on April 24, 2017, 8:06 p.m.


Reviewer None
Submitted April 24, 2017, 8:06 p.m.
Last Updated May 5, 2017, 12:57 a.m.
Revision 6

Cover Letter

In the previous discussion it was suggested not to compile-in
the kdat bits, but rather cache them in some place, that gets
evicted on node reboot.

Here's how this can look like.

Briefly -- when kerndat.c has finished auto-detection is writes
the kdat variable into the /run/criu.kdat file. On the next
start the file in question is loaded into memory (if present)
as is.

As the next step we can move the cpu_init() stuff into kdat and
(as Dima suggested) vdso_init().

-- Pavel