qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/3] Add memfd memory backend
@ 2017-06-21 14:02 Marc-André Lureau
  2017-06-21 14:02 ` [Qemu-devel] [PATCH v4 1/3] memfd: split qemu_memfd_alloc() Marc-André Lureau
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Marc-André Lureau @ 2017-06-21 14:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, ehabkost, Marc-André Lureau

Add a new Linux-specific memory backend, similar to hostmem-file,
except that it doesn't need file path. It also try to enforce memory
sealing if available. It is thus slightly easier and secure, and is
compatible with transparent huge-pages since Linux 4.8.

v4:
- rebased, now that preliminary patches are merged

v3:
- make vhost-user-test use memfd only if possible
- rebased

v1->v2:
- make it linux-specific
- minor changes and commit message tweaks

Marc-André Lureau (3):
  memfd: split qemu_memfd_alloc()
  Add memfd based hostmem
  tests: use memfd in vhost-user-test

 include/qemu/memfd.h     |  2 ++
 backends/hostmem-memfd.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/vhost-user-test.c  | 68 +++++++++++++++++++++++++++++++-----------------
 util/memfd.c             | 42 ++++++++++++++++++------------
 backends/Makefile.objs   |  2 ++
 qemu-options.hx          | 11 ++++++++
 6 files changed, 151 insertions(+), 41 deletions(-)
 create mode 100644 backends/hostmem-memfd.c

-- 
2.13.1.395.gf7b71de06

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

end of thread, other threads:[~2017-07-03 14:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-21 14:02 [Qemu-devel] [PATCH v4 0/3] Add memfd memory backend Marc-André Lureau
2017-06-21 14:02 ` [Qemu-devel] [PATCH v4 1/3] memfd: split qemu_memfd_alloc() Marc-André Lureau
2017-06-21 14:02 ` [Qemu-devel] [PATCH v4 2/3] Add memfd based hostmem Marc-André Lureau
2017-06-23 21:08   ` Eduardo Habkost
2017-06-27  8:23     ` Marc-André Lureau
2017-06-28 18:29       ` Eduardo Habkost
2017-06-29 13:34         ` Marc-André Lureau
2017-07-03 14:34           ` Eduardo Habkost
2017-06-21 14:02 ` [Qemu-devel] [PATCH v4 3/3] tests: use memfd in vhost-user-test Marc-André Lureau
2017-06-22  9:58 ` [Qemu-devel] [PATCH v4 0/3] Add memfd memory backend David Hildenbrand
2017-06-23 11:29   ` Eduardo Habkost

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).