linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Use guest mem inodes instead of anonymous inodes
@ 2025-06-02 19:17 Ackerley Tng
  2025-06-02 19:17 ` [PATCH 1/2] fs: Provide function that allocates a secure anonymous inode Ackerley Tng
  2025-06-02 19:17 ` [PATCH 2/2] KVM: guest_memfd: Use guest mem inodes instead of anonymous inodes Ackerley Tng
  0 siblings, 2 replies; 15+ messages in thread
From: Ackerley Tng @ 2025-06-02 19:17 UTC (permalink / raw)
  To: kvm, linux-mm, linux-kernel, x86, linux-fsdevel
  Cc: ackerleytng, aik, ajones, akpm, amoorthy, anthony.yznaga, anup,
	aou, bfoster, binbin.wu, brauner, catalin.marinas, chao.p.peng,
	chenhuacai, dave.hansen, david, dmatlack, dwmw, erdemaktas,
	fan.du, fvdl, graf, haibo1.xu, hch, hughd, ira.weiny,
	isaku.yamahata, jack, james.morse, jarkko, jgg, jgowans, jhubbard,
	jroedel, jthoughton, jun.miao, kai.huang, keirf, kent.overstreet,
	kirill.shutemov, liam.merwick, maciej.wieczor-retman, mail, maz,
	mic, michael.roth, mpe, muchun.song, nikunj, nsaenz, oliver.upton,
	palmer, pankaj.gupta, paul.walmsley, pbonzini, pdurrant, peterx,
	pgonda, pvorel, qperret, quic_cvanscha, quic_eberman,
	quic_mnalajal, quic_pderrin, quic_pheragu, quic_svaddagi,
	quic_tsoni, richard.weiyang, rick.p.edgecombe, rientjes, roypat,
	rppt, seanjc, shuah, steven.price, steven.sistare, suzuki.poulose,
	tabba, thomas.lendacky, vannapurve, vbabka, viro, vkuznets,
	wei.w.wang, will, willy, xiaoyao.li, yan.y.zhao, yilun.xu,
	yuzenghui, zhiquan1.li

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/20250408112402.181574-1-shivankg@amd.com/
[2] https://lore.kernel.org/lkml/cover.1747368092.git.afranji@google.com/
[3] https://lore.kernel.org/all/20250328153133.3504118-1-tabba@google.com/

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

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

end of thread, other threads:[~2025-06-19  5:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-02 19:17 [PATCH 0/2] Use guest mem inodes instead of anonymous inodes Ackerley Tng
2025-06-02 19:17 ` [PATCH 1/2] fs: Provide function that allocates a secure anonymous inode Ackerley Tng
2025-06-02 20:02   ` David Hildenbrand
2025-06-03  4:52   ` Christoph Hellwig
2025-06-03 10:40     ` Shivank Garg
2025-06-04  7:59   ` Mike Rapoport
2025-06-04 21:13     ` Paul Moore
2025-06-05  5:49       ` Mike Rapoport
2025-06-05 18:23         ` Paul Moore
2025-06-06 15:09           ` Ira Weiny
2025-06-16 13:00             ` Shivank Garg
2025-06-19  5:36               ` Mike Rapoport
2025-06-04  8:02   ` Christian Brauner
2025-06-02 19:17 ` [PATCH 2/2] KVM: guest_memfd: Use guest mem inodes instead of anonymous inodes Ackerley Tng
2025-06-02 20:13   ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).