[CRIU] [PATCH 0/3] vzct: c/r kernel.core_pattern sysctl

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Thu Feb 18 02:20:29 PST 2016



On 02/18/2016 01:11 PM, Cyrill Gorcunov wrote:
> On Thu, Feb 18, 2016 at 01:02:12PM +0300, Pavel Tikhomirov wrote:
>> Make our virtualized kernel.core_pattern properly c/r, thus
>> creating universal VZCT plugin to c/r Virtuozzo specitic staff
>> with criu.
>>
>> I'm not sure if puting PB_VZCT in protobuf-desc.h and CR_FD_VZCT
>> in image-desc.h is the proper way for plugin to put own images
>> in protobuf format, but that seem needed to reuse open_image_at,
>> pb_read_one and pb_write_one.
>
> Hmm. Here is we meet a huge problem. You're working on latest
> criu repo which we don't use in virtuozzo yet unti criu-2.0
> is out. Moreover current criu-2 from repo doesnt c/r containers
> (you and Stas already reported the issue, I didn't get time
>   yet to look on).
>
> So I guess we need to
>
>   - pick this series into xemul's CRIU-2 repo
>   - I'll backport them into our stable branch.

Backporting to our stable branch is simple as:
1)mv images/vzct.proto protobuf/vzct.proto
2)change in test/vzct/vzct.c
-#include "images/vzct.pb-c.h"
+#include "protobuf/vzct.pb-c.h"
3)change in test/vzct/Makefile
-       gcc -g -Werror -Wall -shared -nostartfiles vzct.c -o vzct.so 
-iquote ../../criu/include -iquote ../../ -iquote 
../../criu/arch/x86/include -fPIC
+       gcc -g -Werror -Wall -shared -nostartfiles vzct.c -o vzct.so 
-iquote ../../include -iquote ../../ -iquote ../../arch/x86/include -fPIC
4)change in protobuf-desc.c
-#include "images/vzct.pb-c.h"
+#include "protobuf/vzct.pb-c.h"

>
> Sounds good for you? xemul@?
>

-- 
Best regards, Tikhomirov Pavel
Software Developer, Virtuozzo.


More information about the CRIU mailing list