All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/2] mempinfd: Add new syscall to provide memory pin
@ 2021-02-07  8:18 ` Zhou Wang
  0 siblings, 0 replies; 119+ messages in thread
From: Zhou Wang @ 2021-02-07  8:18 UTC (permalink / raw)
  To: linux-kernel, iommu, linux-mm, linux-arm-kernel, linux-api,
	Andrew Morton, Alexander Viro
  Cc: gregkh, song.bao.hua, jgg, kevin.tian, jean-philippe, eric.auger,
	liguozhu, zhangfei.gao, Zhou Wang

This series adds a new mempinfd syscall to offer a common way to pin/unpin
memory.

Patch 1/2 is about mempinfd codes.
Patch 2/2 adds a simple test tool about mempinfd.

Change logs:
------------
v2 -> v3:
 - Follow suggestions from Greg and Kevin, add a new syscall.
 - Add input check.
 - Use xa_insert to replace xa_store.
 - Add lock to pretect pin and xa_insert.
v1 -> v2:
 - Some tiny fixes.
 - Follow Greg's suggestion to get mm-list and iommu-list involved.

Links:
------
 - v2: https://www.spinics.net/lists/kernel/msg3808926.html
 - v1: https://www.spinics.net/lists/kernel/msg3805205.html

Zhou Wang (2):
  mempinfd: Add new syscall to provide memory pin
  selftests/vm: add mempinfd test

 arch/arm64/include/asm/unistd.h       |   2 +-
 arch/arm64/include/asm/unistd32.h     |   2 +
 fs/Makefile                           |   1 +
 fs/mempinfd.c                         | 199 ++++++++++++++++++++++++++++++++++
 include/linux/syscalls.h              |   1 +
 include/uapi/asm-generic/unistd.h     |   4 +-
 include/uapi/linux/mempinfd.h         |  23 ++++
 init/Kconfig                          |   6 +
 tools/testing/selftests/vm/Makefile   |   1 +
 tools/testing/selftests/vm/mempinfd.c | 131 ++++++++++++++++++++++
 10 files changed, 368 insertions(+), 2 deletions(-)
 create mode 100644 fs/mempinfd.c
 create mode 100644 include/uapi/linux/mempinfd.h
 create mode 100644 tools/testing/selftests/vm/mempinfd.c

-- 
2.8.1


^ permalink raw reply	[flat|nested] 119+ messages in thread

end of thread, other threads:[~2021-02-11 10:32 UTC | newest]

Thread overview: 119+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07  8:18 [RFC PATCH v3 0/2] mempinfd: Add new syscall to provide memory pin Zhou Wang
2021-02-07  8:18 ` Zhou Wang
2021-02-07  8:18 ` Zhou Wang
2021-02-07  8:18 ` [RFC PATCH v3 1/2] " Zhou Wang
2021-02-07  8:18   ` Zhou Wang
2021-02-07  8:18   ` Zhou Wang
2021-02-07 10:51   ` kernel test robot
2021-02-07 10:59   ` kernel test robot
2021-02-07 21:34   ` Matthew Wilcox
2021-02-07 21:34     ` Matthew Wilcox
2021-02-07 21:34     ` Matthew Wilcox
2021-02-07 22:24     ` Song Bao Hua (Barry Song)
2021-02-07 22:24       ` Song Bao Hua (Barry Song)
2021-02-07 22:24       ` Song Bao Hua (Barry Song)
2021-02-07 22:24       ` Song Bao Hua (Barry Song)
2021-02-08  1:30       ` Matthew Wilcox
2021-02-08  1:30         ` Matthew Wilcox
2021-02-08  1:30         ` Matthew Wilcox
2021-02-08  1:30         ` Matthew Wilcox
2021-02-08  2:27         ` Song Bao Hua (Barry Song)
2021-02-08  2:27           ` Song Bao Hua (Barry Song)
2021-02-08  2:27           ` Song Bao Hua (Barry Song)
2021-02-08  2:27           ` Song Bao Hua (Barry Song)
2021-02-08  3:46           ` Hillf Danton
2021-02-08  8:21           ` David Hildenbrand
2021-02-08  8:21             ` David Hildenbrand
2021-02-08  8:21             ` David Hildenbrand
2021-02-08  8:21             ` David Hildenbrand
2021-02-08 10:13             ` Song Bao Hua (Barry Song)
2021-02-08 10:13               ` Song Bao Hua (Barry Song)
2021-02-08 10:13               ` Song Bao Hua (Barry Song)
2021-02-08 10:13               ` Song Bao Hua (Barry Song)
2021-02-08 10:37               ` David Hildenbrand
2021-02-08 10:37                 ` David Hildenbrand
2021-02-08 10:37                 ` David Hildenbrand
2021-02-08 10:37                 ` David Hildenbrand
2021-02-08 20:52                 ` Song Bao Hua (Barry Song)
2021-02-08 20:52                   ` Song Bao Hua (Barry Song)
2021-02-08 20:52                   ` Song Bao Hua (Barry Song)
2021-02-08 20:52                   ` Song Bao Hua (Barry Song)
2021-02-08  2:18       ` David Rientjes
2021-02-08  2:18         ` David Rientjes
2021-02-08  2:18         ` David Rientjes via iommu
2021-02-08  2:18         ` David Rientjes
2021-02-08  5:34         ` Song Bao Hua (Barry Song)
2021-02-08  5:34           ` Song Bao Hua (Barry Song)
2021-02-08  5:34           ` Song Bao Hua (Barry Song)
2021-02-08  5:34           ` Song Bao Hua (Barry Song)
2021-02-09  9:02     ` Zhou Wang
2021-02-09  9:02       ` Zhou Wang
2021-02-07 21:51   ` Arnd Bergmann
2021-02-07 21:51     ` Arnd Bergmann
2021-02-07 21:51     ` Arnd Bergmann
2021-02-07 21:51     ` Arnd Bergmann
2021-02-09  9:27     ` Zhou Wang
2021-02-09  9:27       ` Zhou Wang
2021-02-09  9:27       ` Zhou Wang
2021-02-07 22:02   ` Andy Lutomirski
2021-02-07 22:02     ` Andy Lutomirski
2021-02-07 22:02     ` Andy Lutomirski
2021-02-09  9:17     ` Zhou Wang
2021-02-09  9:17       ` Zhou Wang
2021-02-09  9:17       ` Zhou Wang
2021-02-09  9:37       ` Greg KH
2021-02-09  9:37         ` Greg KH
2021-02-09  9:37         ` Greg KH
2021-02-09 11:58         ` Zhou Wang
2021-02-09 11:58           ` Zhou Wang
2021-02-09 11:58           ` Zhou Wang
2021-02-09 12:01           ` Greg KH
2021-02-09 12:01             ` Greg KH
2021-02-09 12:01             ` Greg KH
2021-02-09 12:20             ` Zhou Wang
2021-02-09 12:20               ` Zhou Wang
2021-02-09 12:20               ` Zhou Wang
2021-02-10 18:50               ` Matthew Wilcox
2021-02-10 18:50                 ` Matthew Wilcox
2021-02-10 18:50                 ` Matthew Wilcox
2021-02-08  8:14   ` David Hildenbrand
2021-02-08  8:14     ` David Hildenbrand
2021-02-08  8:14     ` David Hildenbrand
2021-02-08 18:33     ` Jason Gunthorpe
2021-02-08 18:33       ` Jason Gunthorpe
2021-02-08 18:33       ` Jason Gunthorpe
2021-02-08 20:35       ` Song Bao Hua (Barry Song)
2021-02-08 20:35         ` Song Bao Hua (Barry Song)
2021-02-08 20:35         ` Song Bao Hua (Barry Song)
2021-02-08 20:35         ` Song Bao Hua (Barry Song)
2021-02-08 21:30         ` Jason Gunthorpe
2021-02-08 21:30           ` Jason Gunthorpe
2021-02-08 21:30           ` Jason Gunthorpe
2021-02-08 21:30           ` Jason Gunthorpe
2021-02-09  3:01           ` Song Bao Hua (Barry Song)
2021-02-09  3:01             ` Song Bao Hua (Barry Song)
2021-02-09  3:01             ` Song Bao Hua (Barry Song)
2021-02-09  3:01             ` Song Bao Hua (Barry Song)
2021-02-09 13:53             ` Jason Gunthorpe
2021-02-09 13:53               ` Jason Gunthorpe
2021-02-09 13:53               ` Jason Gunthorpe
2021-02-09 13:53               ` Jason Gunthorpe
2021-02-09 22:22               ` Song Bao Hua (Barry Song)
2021-02-09 22:22                 ` Song Bao Hua (Barry Song)
2021-02-09 22:22                 ` Song Bao Hua (Barry Song)
2021-02-09 22:22                 ` Song Bao Hua (Barry Song)
2021-02-10 18:04                 ` Jason Gunthorpe
2021-02-10 18:04                   ` Jason Gunthorpe
2021-02-10 18:04                   ` Jason Gunthorpe
2021-02-10 18:04                   ` Jason Gunthorpe
2021-02-10 21:39                   ` Song Bao Hua (Barry Song)
2021-02-10 21:39                     ` Song Bao Hua (Barry Song)
2021-02-10 21:39                     ` Song Bao Hua (Barry Song)
2021-02-10 21:39                     ` Song Bao Hua (Barry Song)
2021-02-11 10:28                     ` David Hildenbrand
2021-02-11 10:28                       ` David Hildenbrand
2021-02-11 10:28                       ` David Hildenbrand
2021-02-11 10:28                       ` David Hildenbrand
2021-02-07  8:18 ` [RFC PATCH v3 2/2] selftests/vm: add mempinfd test Zhou Wang
2021-02-07  8:18   ` Zhou Wang
2021-02-07  8:18   ` Zhou Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.