Home
last modified time | relevance | path

Searched refs:memfd (Results 1 – 15 of 15) sorted by relevance

/qemu/contrib/vhost-user-gpu/
H A Dvugbm.c45 uint32_t memfd; member
64 buf->memfd = memfd_create("udmabuf-bo", MFD_ALLOW_SEALING); in udmabuf_alloc_bo()
65 if (buf->memfd < 0) { in udmabuf_alloc_bo()
69 ret = ftruncate(buf->memfd, udmabuf_get_size(buf)); in udmabuf_alloc_bo()
71 close(buf->memfd); in udmabuf_alloc_bo()
75 ret = fcntl(buf->memfd, F_ADD_SEALS, F_SEAL_SHRINK); in udmabuf_alloc_bo()
77 close(buf->memfd); in udmabuf_alloc_bo()
89 close(buf->memfd); in udmabuf_free_bo()
96 PROT_READ | PROT_WRITE, MAP_SHARED, buf->memfd, 0); in udmabuf_map_bo()
108 .memfd = buf->memfd, in udmabuf_get_fd()
H A Dvugbm.h43 int memfd; member
/qemu/include/standard-headers/linux/
H A Dudmabuf.h10 uint32_t memfd; member
17 uint32_t memfd; member
/qemu/docs/system/
H A Dmulti-process.rst55 memory-backend-memfd is required to facilitate this, as follows:
57 -object memory-backend-memfd,id=mem,size=2G
/qemu/docs/system/devices/
H A Dvhost-user.rst101 achieved via the ``memory-backend-file``, ``memory-backend-memfd``, or
127 -object memory-backend-memfd,id=mem,size=4G,share=on \\
H A Dvhost-user-rng.rst31 use to communicate as well as share the guests memory over a memfd.
H A Dnet.rst121 …ev0,chardev=chr0 -device virtio-net,netdev=netdev0 -object memory-backend-memfd,id=memfd0,share=on…
123 Where ``$RAMSIZE`` is the memory size of your VM ``-m`` and ``-object memory-backend-memfd,size=`` …
/qemu/backends/
H A Dmeson.build21 system_ss.add(files('hostmem-memfd.c'))
/qemu/tests/qtest/
H A Dvhost-user-test.c225 int size, enum test_memfd memfd) in append_mem_opts() argument
227 if (memfd == TEST_MEMFD_AUTO) { in append_mem_opts()
228 memfd = qemu_memfd_check(MFD_ALLOW_SEALING) ? TEST_MEMFD_YES in append_mem_opts()
232 if (memfd == TEST_MEMFD_YES) { in append_mem_opts()
234 } else if (memfd == TEST_MEMFD_SHM) { in append_mem_opts()
/qemu/hw/display/
H A Dvirtio-gpu-udmabuf.c55 list->list[i].memfd = rb->fd; in virtio_gpu_create_udmabuf()
/qemu/scripts/
H A Dupdate-linux-headers.sh202 psci.h psp-sev.h userfaultfd.h memfd.h mman.h nvme_ioctl.h \
/qemu/util/
H A Dmeson.build23 util_ss.add(files('memfd.c'))
/qemu/qapi/
H A Dqom.json608 # memory-backend-memfd, and memory-backend-shm)
705 # Properties for memory-backend-memfd objects.
1148 { 'name': 'memory-backend-memfd',
1224 'memory-backend-memfd': { 'type': 'MemoryBackendMemfdProperties',
/qemu/docs/devel/migration/
H A DCPR.rst183 a memory-backend object) to be allocated by mmap'ing a memfd.
/qemu/
H A Dqemu-options.hx5475 …``-object memory-backend-memfd,id=id,merge=on|off,dump=on|off,share=on|off,prealloc=on|off,size=si…
5478 using vhost-user). The memory is allocated with memfd and
5498 The ``share`` boolean option is on by default with memfd.
5506 of ``memory-backend-memfd``. It can then be used in any POSIX system,
5507 especially when memfd is not supported.