qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/9] RFC: add memfd memory backend
@ 2016-04-12 11:55 marcandre.lureau
  2016-04-12 11:55 ` [Qemu-devel] [PATCH 1/9] exec: check kvm mmu notifiers earlier marcandre.lureau
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: marcandre.lureau @ 2016-04-12 11:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, Marc-André Lureau

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Add a new memory backend, similar to hostmem-file, except that it
doesn't need a file path, or hugepages directory permissions. It also
try to enforce memory sealing if available.

This backend is mainly useful for easily sharing the memory with other
processes, for example with vhost-user backend, when hugepages aren't
available (for security reasons or other limitations).

Marc-André Lureau (9):
  exec: check kvm mmu notifiers earlier
  exec: split file_ram_alloc()
  exec: split qemu_ram_alloc_from_file()
  Add memory_region_init_ram_from_fd()
  RFC: ivshmem: use ram_from_fd()
  exec: remove qemu_set_ram_fd()
  memfd: split qemu_memfd_alloc()
  Add memfd based hostmem
  tests: use memfd in vhost-user-test

 backends/Makefile.objs   |   1 +
 backends/hostmem-memfd.c |  85 ++++++++++++++++++++++++++++++++++++++
 exec.c                   | 103 +++++++++++++++++++++++++++--------------------
 hw/misc/ivshmem.c        |  13 +++---
 include/exec/memory.h    |  20 +++++++++
 include/exec/ram_addr.h  |   4 +-
 include/qemu/memfd.h     |   1 +
 memory.c                 |  16 ++++++++
 qemu-options.hx          |  12 ++++++
 tests/vhost-user-test.c  |  12 +++---
 util/memfd.c             |  19 ++++++---
 11 files changed, 222 insertions(+), 64 deletions(-)
 create mode 100644 backends/hostmem-memfd.c

-- 
2.5.5

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

end of thread, other threads:[~2016-04-12 13:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12 11:55 [Qemu-devel] [PATCH 0/9] RFC: add memfd memory backend marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 1/9] exec: check kvm mmu notifiers earlier marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 2/9] exec: split file_ram_alloc() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 3/9] exec: split qemu_ram_alloc_from_file() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 4/9] Add memory_region_init_ram_from_fd() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 5/9] RFC: ivshmem: use ram_from_fd() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 6/9] exec: remove qemu_set_ram_fd() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 7/9] memfd: split qemu_memfd_alloc() marcandre.lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 8/9] Add memfd based hostmem marcandre.lureau
2016-04-12 13:07   ` Igor Mammedov
2016-04-12 13:32     ` Marc-André Lureau
2016-04-12 11:55 ` [Qemu-devel] [PATCH 9/9] tests: use memfd in vhost-user-test marcandre.lureau

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