qemu-e2k/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.c
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
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
rng-random.c
rng.c
tpm.c tpm: report backend request error 2018-01-29 14:22:43 -05:00