[CRIU] [PATCH 00/15] cpuinfo, v2

Cyrill Gorcunov gorcunov at openvz.org
Fri Sep 19 07:03:02 PDT 2014


Guys, here is a second version of cpuinfo related code. The
only problem I think it has now is procfs output parsing I think
it should be optimized with either ideal hashing or native cpuinfo
calls, not sure yet.

Anyway, please take a look once time permit and tell me what you think.

Cyrill Gorcunov (15):
  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
  opt: cpu-cap -- Use else if statement when walking over options
  opt: cpu-cap -- Introduce "none"
  opt: cpu-cap -- Introduce "cpuinfo" capability
  opt: cpu-cap -- Define default capability
  opt: cpu-cap  -- Make it as optional_argument
  cpuinfo: Update help output
  cpuinfo: Update documentation for --cpu-cap
  cpuinfo: Add "cpuinfo (dump|check)" commands
  cpuinfo: rpc -- Add CPUINFO_DUMP/CPUINFO_CHECK commands

 Documentation/criu.txt     |  27 ++-
 arch/aarch64/cpu.c         |  21 +++
 arch/arm/cpu.c             |  21 +++
 arch/x86/cpu.c             | 437 +++++++++++++++++++++++++++++++++++++++++++--
 arch/x86/include/asm/cpu.h |  65 ++++++-
 cr-dump.c                  |   5 +
 cr-restore.c               |   3 +
 cr-service.c               |  23 +++
 cr-show.c                  |   1 +
 crtools.c                  |  33 +++-
 image-desc.c               |   1 +
 include/cpu.h              |   4 +
 include/cr_options.h       |   3 +
 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 ++++
 protobuf/rpc.proto         |   3 +
 22 files changed, 670 insertions(+), 38 deletions(-)
 create mode 100644 protobuf/cpuinfo.proto

-- 
1.9.3



More information about the CRIU mailing list