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

Cyrill Gorcunov gorcunov at openvz.org
Wed Aug 13 10:54:26 PDT 2014


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.

Cyrill Gorcunov (6):
  cpuinfo: x86 -- Add protobuf entry
  cpuinfo: Prepare protobuf and magic
  cpuinfo: x86 -- Add needed bits and abbreviatures
  cpuinfo: x86 -- Add local copy of CpuinfoEntry
  cpuinfo: x86 -- Rework cpuinfo parsing
  cpuinfo: x86 -- Add dump and validation

 arch/aarch64/cpu.c         |  10 ++
 arch/arm/cpu.c             |  10 ++
 arch/x86/cpu.c             | 391 +++++++++++++++++++++++++++++++++++++++++++--
 arch/x86/include/asm/cpu.h |  65 +++++++-
 cr-dump.c                  |   3 +
 cr-restore.c               |   3 +
 cr-show.c                  |   1 +
 image-desc.c               |   1 +
 include/cpu.h              |   2 +
 include/cr_options.h       |   1 +
 include/image-desc.h       |   1 +
 include/magic.h            |   1 +
 include/proc_parse.h       |   2 +-
 include/protobuf-desc.h    |   5 +-
 proc_parse.c               |  18 +--
 protobuf-desc.c            |   1 +
 protobuf/Makefile          |   1 +
 protobuf/cpuinfo.proto     |  32 ++++
 18 files changed, 521 insertions(+), 27 deletions(-)
 create mode 100644 protobuf/cpuinfo.proto

-- 
1.9.3


More information about the CRIU mailing list