diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-02-01 14:27:54 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-02-07 14:09:25 +0100 |
commit | dbb9e0f40d7d561dcffcf7e41ac9f6a5ec90e5b5 (patch) | |
tree | 950d003f8c14f5408f9152fcdbf79dd137c71986 /tests/vhost-user-test.c | |
parent | 2ef8c0c99be7ee5b9dbceaae41b8890e7c81240f (diff) | |
download | qemu-dbb9e0f40d7d561dcffcf7e41ac9f6a5ec90e5b5.zip qemu-dbb9e0f40d7d561dcffcf7e41ac9f6a5ec90e5b5.tar.gz qemu-dbb9e0f40d7d561dcffcf7e41ac9f6a5ec90e5b5.tar.bz2 |
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>
Diffstat (limited to 'tests/vhost-user-test.c')
0 files changed, 0 insertions, 0 deletions