Skip to content

powerpc checkpoint/restart kernel support

Nathan Lynch containers 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9checkpoint: fix integer-pointer conversion warningscheckpoint/process.c+4 -43 replies
2/9fix trivial build breaks in compat codecheckpoint/process.c+3 -30 replies
3/9futex.h: fix compat buildsinclude/linux/futex.h+4 -02 replies
4/9powerpc: reserve checkpoint arch identifiersinclude/linux/checkpoint_hdr.h+2 -00 replies
5/9powerpc: provide APIs for validating and updating DABRarch/powerpc/include/asm/ptrace.h arch/powerpc/kernel/ptrace.c+66 -290 replies
6/9powerpc: checkpoint/restart implementationarch/powerpc/include/asm/Kbuild arch/powerpc/include/asm/checkpoint_hdr.h arch/powerpc/mm/Makefile +1 more+555 -00 replies
7/9powerpc: wire up checkpoint and restart syscallsarch/powerpc/include/asm/systbl.h arch/powerpc/include/asm/unistd.h+5 -10 replies
8/9powerpc: enable checkpoint support in Kconfigarch/powerpc/Kconfig+3 -00 replies
9/9powerpc: clone_with_pids implementationarch/powerpc/include/asm/syscalls.h arch/powerpc/include/asm/systbl.h arch/powerpc/include/asm/unistd.h +3 more+38 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] powerpc checkpoint/restart kernel support

Patches 1-3 fix general issues and can be applied immediately.

Patches 4-8 implement the checkpoint and restart syscalls and architecture callbacks.

Patch 9 implements the clone_with_pids syscall, but I think the shape of that interface is yet to be finalized, so I guess it's FYI for now.

Simple single task checkpoint and restart work, as does clone_with_pids, apparently. Multiple task restart fails; the coordinator task appears to be receiving a signal during wait_all_tasks_finish() -> wait_for_completion_interruptible() for some reason I am still trying to tracking down.

Nathan Lynch (9):
checkpoint: fix integer-pointer conversion warnings fix trivial build breaks in compat code futex.h: fix compat builds
powerpc: reserve checkpoint arch identifiers
powerpc: provide APIs for validating and updating DABR
powerpc: checkpoint/restart implementation
powerpc: wire up checkpoint and restart syscalls
powerpc: enable checkpoint support in Kconfig
powerpc: clone_with_pids implementation

 arch/powerpc/Kconfig                      |    3 +
 arch/powerpc/include/asm/Kbuild           |    1 +
 arch/powerpc/include/asm/checkpoint_hdr.h |   22 ++
 arch/powerpc/include/asm/ptrace.h         |    7 +
 arch/powerpc/include/asm/syscalls.h       |    4 +
 arch/powerpc/include/asm/systbl.h         |    3 +
 arch/powerpc/include/asm/unistd.h         |    5 +-
 arch/powerpc/kernel/entry_32.S            |    8 +
 arch/powerpc/kernel/entry_64.S            |    5 +
 arch/powerpc/kernel/process.c             |   18 +
 arch/powerpc/kernel/ptrace.c              |   88 ++++--
 arch/powerpc/mm/Makefile                  |    1 +
 arch/powerpc/mm/checkpoint.c              |  531 +++++++++++++++++++++++++++++
 checkpoint/process.c                      |   14 +-
 include/linux/checkpoint_hdr.h            |    2 +
 include/linux/futex.h                     |    4 +
 16 files changed, 679 insertions(+), 37 deletions(-)
 create mode 100644 arch/powerpc/include/asm/checkpoint_hdr.h
 create mode 100644 arch/powerpc/mm/checkpoint.c