[CRIU] custom initialization during restore

CRIU criu criuport at gmail.com
Thu Jun 11 11:27:05 PDT 2015


Thanks! Let me take a look.

On Thu, Jun 11, 2015 at 6:01 AM, Pavel Emelyanov <xemul at parallels.com>
wrote:

> On 06/11/2015 05:06 AM, CRIU criu wrote:
> > Hi,
> >
> > How can I add custom initialization code to restorer before unmap and
> sigreturn?
> > I'm trying to checkpoint /restore a single Android process. For external
> dependencies, I
> > need to initialize Java objects collected as a part of memory dump by
> CRIU. The
> > initialization code involves making a bunch of syscalls. Can I do this
> by creating a
> > custom restorer blob or inside cr_restore_tasks() in cr-restore.c?
> Thanks!
>
> Hm :) Nice request. Right now there's no such ability in CRIU and I don't
> see _easy_ solution. Complex solution can be plugin, that gets loaded into
> restorer blob and that's called at the very end of restorer, but this would
> require non-trivial preparation of the plugin itself. We've played with
> such things before, you can dig deep into the pie/ code and into the
> compel project (https://github.com/xemul/compel) for details :)
>
> -- Pavel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150611/00047dd2/attachment.html>


More information about the CRIU mailing list