[CRIU] [PATCH 0/6] cpuinfo: Introduce dump and validation of CPU features

Cyrill Gorcunov gorcunov at gmail.com
Wed Aug 13 11:01:34 PDT 2014


On Wed, Aug 13, 2014 at 09:54:26PM +0400, Cyrill Gorcunov wrote:
> It's been noted that when we migrate tasks from one machine
> to another we might have destination cpu less capable than
> source one. For this sake we
> 
>  - add cpuinfo image on dump, which carries all cpu feature
>    bits we're interested in one place
> 
>  - validate this image on restore to make sure we can proceed
>    without errors
> 
> Please take a look.

Forgot to mention. The example output is

[cyrill at moon criu] ./criu show -f test/dump/static/fpu00/7151/1/cpuinfo.img
id: 0x1 x86_entry: { vendor_id: INTEL cpu_family: 0x6 model: 0x2a model_name: "Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz"
features: 0x7888101:0x8000800:0:0x100000:0x1498230b:0:0:0:0:0:0x1:0 stepping: 0x7 physical_id: 0 siblings: 0x4 core_id: 0 cpu_cores: 0x2 }

This if someone need to extract the bits carried in image -- simply
use the "criu show -f" and grep for "features:" bits.


More information about the CRIU mailing list