From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apwuv-0004Hg-3Y for qemu-devel@nongnu.org; Tue, 12 Apr 2016 07:55:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apwuq-0008Jv-VO for qemu-devel@nongnu.org; Tue, 12 Apr 2016 07:55:36 -0400 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:34091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apwuq-0008Jo-Oq for qemu-devel@nongnu.org; Tue, 12 Apr 2016 07:55:32 -0400 Received: by mail-qg0-x22b.google.com with SMTP id c6so13187162qga.1 for ; Tue, 12 Apr 2016 04:55:32 -0700 (PDT) Sender: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= From: marcandre.lureau@redhat.com Date: Tue, 12 Apr 2016 13:55:20 +0200 Message-Id: <1460462129-17363-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 0/9] RFC: add memfd memory backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-André Lureau 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