[CRIU] [PATCH 00/11] x86-32: Build criu in compat mode

Cyrill Gorcunov gorcunov at openvz.org
Wed Apr 22 10:19:55 PDT 2015


In this series we bring ability to build criu in 32bit mode.
By build I mean litarally _build_ criu but not run it -- the
criu itself is not yet ready for operating in compat mode
(vdso, parasite code and etc are still stubs).

So I simply tried to split previous series in more small
pieces.

Also there is a number of ifdefs in pie vdso code which
I'll be reworking (but not yet sure the form it will end
up with), so don't complain please here, it will go out
soon.

Cyrill Gorcunov (11):
  x86: x86-64 syscalls -- Rework build procedure
  make: Export @ARCH and @SRCARCH
  arch: x86-32 syscalls -- Wire in syscalls generation
  make: Itroduce PROTOUFIX variable
  x86: Add 32bit variant of TASK_SIZE
  x86: Add explicit type conversion in show_rt_xsave_frame
  x86: Add explicit type conversion for encode/decode pointer
  make: Introduce ldflags-y variable
  x86: parasite-head.S -- Add 32bit stub
  make: pie - Require non PIE code for 32bit x86 code
  arch: x86-32 -- Be able to build 32bit CRIU

 Makefile                                  |  19 ++++++
 arch/x86/Makefile                         |  80 ++++++++++++++++-------
 arch/x86/crtools.c                        |   4 +-
 arch/x86/include/asm/restore.h            |   9 +++
 arch/x86/include/asm/restorer.h           |  23 ++++++-
 arch/x86/include/asm/syscall32.h          |  25 ++++++++
 arch/x86/include/asm/types.h              |  10 ++-
 arch/x86/parasite-head.S                  |  13 ++++
 arch/x86/restorer.c                       |   3 +-
 arch/x86/syscall-common-x86-64.S          |  21 ------
 arch/x86/syscall-x86-64.def               | 103 ------------------------------
 arch/x86/syscalls/syscall-common-x86-32.S |  36 +++++++++++
 arch/x86/syscalls/syscall-common-x86-64.S |  21 ++++++
 arch/x86/syscalls/syscall32.c             |  85 ++++++++++++++++++++++++
 arch/x86/syscalls/syscall_32.tbl          |  88 +++++++++++++++++++++++++
 arch/x86/syscalls/syscall_64.tbl          |  98 ++++++++++++++++++++++++++++
 arch/x86/vdso-pie.c                       |  29 +++++++++
 pie/Makefile                              |   7 +-
 protobuf/Makefile                         |   4 +-
 scripts/Makefile.build                    |   4 +-
 20 files changed, 522 insertions(+), 160 deletions(-)
 create mode 100644 arch/x86/include/asm/syscall32.h
 delete mode 100644 arch/x86/syscall-common-x86-64.S
 delete mode 100644 arch/x86/syscall-x86-64.def
 create mode 100644 arch/x86/syscalls/syscall-common-x86-32.S
 create mode 100644 arch/x86/syscalls/syscall-common-x86-64.S
 create mode 100644 arch/x86/syscalls/syscall32.c
 create mode 100644 arch/x86/syscalls/syscall_32.tbl
 create mode 100644 arch/x86/syscalls/syscall_64.tbl

-- 
2.1.0



More information about the CRIU mailing list