Lines Matching +full:set +full:- +full:content
10 * later. See the COPYING file in the top-level directory.
21 #include "qemu/mmap-alloc.h"
22 #include "qemu/host-utils.h"
24 #include "qemu/error-report.h"
66 if (fd != -1) { in qemu_fd_getpagesize()
90 gchar *content = NULL; in map_noreserve_effective() local
109 * implicitly active -- no reservation; this includes shmem. The only in map_noreserve_effective()
119 * memory overcommit is set to "never". Sparse memory regions aren't really in map_noreserve_effective()
125 if (g_file_get_contents(OVERCOMMIT_MEMORY_PATH, &content, NULL, NULL) && in map_noreserve_effective()
126 !qemu_strtoui(content, &endptr, 0, &tmp) && in map_noreserve_effective()
159 * page size. Since we will be re-allocating part of this segment in mmap_reserve()
161 * this end we mmap the supplied fd. In this case, set MAP_NORESERVE to in mmap_reserve()
166 if (fd == -1 || qemu_fd_getpagesize(fd) == qemu_real_host_page_size()) { in mmap_reserve()
167 fd = -1; in mmap_reserve()
173 fd = -1; in mmap_reserve()
200 flags |= fd == -1 ? MAP_ANONYMOUS : 0; in mmap_activate()
213 int len = readlink(proc_link, file_name, PATH_MAX - 1); in mmap_activate()
272 offset = QEMU_ALIGN_UP((uintptr_t)guardptr, align) - (uintptr_t)guardptr; in qemu_ram_mmap()
289 total -= offset; in qemu_ram_mmap()
291 munmap(ptr + size + guard_pagesize, total - size - guard_pagesize); in qemu_ram_mmap()