Skip to content

RFC IPC: checkpoint/restore in userspace enhancements

Stanislav Kinsbursky linux-api lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 RFC Latest5 patches 12 repliesIn review
  2. v710 patches 3 repliesSuperseded
  3. v610 patches 13 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v510 patches1 replySuperseded
v49 patches3 repliesSuperseded
v15 patches9 repliesSuperseded

Changes in v8 from the cover letter

This respin of the patch set was significantly reworked. Most part of new API was replaced by sysctls (by one per messages, semaphores and shared memory), allowing to preset desired id for next new IPC object.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ipc: remove forced assignment of selected messageipc/msg.c+1 -40 replies
2/5ipc: add sysctl to specify desired next object idinclude/linux/ipc_namespace.h ipc/ipc_sysctl.c ipc/util.c +1 more+42 -42 replies
3/5ipc: message queue receive cleanupinclude/linux/msg.h ipc/compat.c ipc/msg.c+45 -490 replies
4/5ipc: message queue copy feature introducedinclude/uapi/linux/msg.h ipc/msg.c ipc/msgutil.c +1 more+88 -21 reply
5/5test: IPC message queue copy feture testtools/testing/selftests/ipc/Makefile tools/testing/selftests/ipc/msgque.c+256 -00 replies

Reviews trailers per patch

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

Read the v8 thread

Cover letter [RFC PATCH v8 0/5] IPC: checkpoint/restore in userspace enhancements

v8:
This respin of the patch set was significantly reworked. Most part of new API was replaced by sysctls (by one per messages, semaphores and shared memory), allowing to preset desired id for next new IPC object.

This patch set is aimed to provide additional functionality for all IPC objects, which is required for migration of these objects by user-space checkpoint/restore utils (CRIU).

The main problem here was impossibility to set up object id. This patch set solves the problem by adding new sysctls for preset of desired id for new IPC object.

Another problem was to peek messages from queues without deleting them. This was achived by introducing of new MSG_COPY flag for sys_msgrcv(). If MSG_COPY flag is set, then msgtyp is interpreted as message number.

The following series implements...

---

Stanislav Kinsbursky (5):
ipc: remove forced assignment of selected message
ipc: add sysctl to specify desired next object id
ipc: message queue receive cleanup
ipc: message queue copy feature introduced
test: IPC message queue copy feture test

 include/linux/ipc_namespace.h        |    1 
 include/linux/msg.h                  |    5 -
 include/uapi/linux/msg.h             |    1 
 ipc/compat.c                         |   45 +++----
 ipc/ipc_sysctl.c                     |   28 ++++
 ipc/msg.c                            |   99 +++++++++++----
 ipc/msgutil.c                        |   38 ++++++
 ipc/util.c                           |   16 ++
 ipc/util.h                           |    2 
 tools/testing/selftests/ipc/Makefile |   25 ++++
 tools/testing/selftests/ipc/msgque.c |  231 ++++++++++++++++++++++++++++++++++
 11 files changed, 432 insertions(+), 59 deletions(-)
 create mode 100644 tools/testing/selftests/ipc/Makefile
 create mode 100644 tools/testing/selftests/ipc/msgque.c