Use guest mem inodes instead of anonymous inodes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fs: Provide function that allocates a secure anonymous inodefs/ include/ mm/ | +18 | 11 replies | |
| 2/2 | KVM: guest_memfd: Use guest mem inodes instead of anonymous inodesinclude/ virt/ virt/ +1 more | +125 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | David Hildenbrand |
|---|---|
| 1/2 | A-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Use guest mem inodes instead of anonymous inodes
Hi,
This small patch series makes guest_memfd use guest mem inodes instead of anonymous inodes and also includes some refactoring to expose a new function that allocates an inode and runs security checks.
This patch series will serve as a common base for some in-flight series:
* Add NUMA mempolicy support for KVM guest-memfd [1]
* New KVM ioctl to link a gmem inode to a new gmem file [2]
* Restricted mapping of guest_memfd at the host and arm64 support [3] aka shared/private conversion support for guest_memfd
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
Ackerley Tng (2):
fs: Provide function that allocates a secure anonymous inode
KVM: guest_memfd: Use guest mem inodes instead of anonymous inodes
fs/anon_inodes.c | 22 ++++-- include/linux/fs.h | 1 + include/uapi/linux/magic.h | 1 + mm/secretmem.c | 9 +-- virt/kvm/guest_memfd.c | 134 +++++++++++++++++++++++++++++++------ virt/kvm/kvm_main.c | 7 +- virt/kvm/kvm_mm.h | 9 ++- 7 files changed, 143 insertions(+), 40 deletions(-)
base-commit: a5806cd506af5a7c19bcd596e4708b5c464bfd21 --
2.49.0.1204.g71687c7c1d-goog