qemu/backends
Marc-André Lureau dbb9e0f40d Add memfd based hostmem
Add a new memory backend, similar to hostmem-file, except that it
doesn't need to create files. It also enforces memory sealing.

This backend is mainly useful for sharing the memory with other
processes.

Note that Linux supports transparent huge-pages of shmem/memfd memory
since 4.8. It is relatively easier to set up THP than a dedicate
hugepage mount point by using "madvise" in
/sys/kernel/mm/transparent_hugepage/shmem_enabled.

Since 4.14, memfd allows to set hugetlb requirement explicitly.

Pending for merge in 4.16 is memfd sealing support for hugetlb backed
memory.

Usage:
-object memory-backend-memfd,id=mem1,size=1G

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180201132757.23063-5-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-02-07 14:09:25 +01:00
..
cryptodev-builtin.c cryptodev: fix asserting single queue 2017-03-23 17:22:01 +08:00
cryptodev.c qom: Remove unused errp parameter from can_be_deleted() 2017-09-01 10:43:07 -03:00
hostmem-file.c hostmem-file: add "align" option 2018-01-19 11:18:51 -02:00
hostmem-memfd.c Add memfd based hostmem 2018-02-07 14:09:25 +01:00
hostmem-ram.c memory: Rename memory_region_init_ram() to memory_region_init_ram_nomigrate() 2017-07-14 17:59:42 +01:00
hostmem.c QAPI patches for 2017-09-01 2017-09-04 13:28:09 +01:00
Makefile.objs Add memfd based hostmem 2018-02-07 14:09:25 +01:00
rng-egd.c char: add backend hotswap handler 2017-07-14 11:04:33 +02:00
rng-random.c rng-random: rename RndRandom to RngRandom 2016-05-23 12:18:43 +05:30
rng.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
tpm.c tpm: report backend request error 2018-01-29 14:22:43 -05:00