Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 96) sorted by relevance

1234

/qemu/tests/multiboot/
H A Dmmap.out17 mmap start: 0x9000
18 mmap end: 0x9090
19 real mmap end: 0x9090
34 mmap start: 0x9000
35 mmap end: 0x9078
36 real mmap end: 0x9078
52 mmap start: 0x9000
53 mmap end: 0x9090
54 real mmap end: 0x9090
71 mmap start: 0x9000
[all …]
H A Drun_test.sh54 mmap() { function
55 run_qemu mmap.elf
56 run_qemu mmap.elf -m 1.1M
57 run_qemu mmap.elf -m 2G
58 run_qemu mmap.elf -m 4G
59 run_qemu mmap.elf -m 8G
78 for t in mmap modules aout_kludge; do
H A DMakefile12 all: mmap.elf modules.elf $(AOUT_KLUDGE_BIN)
14 mmap.elf: start.o mmap.o libc.o link.ld
/qemu/tests/tcg/multiarch/
H A Dtest-mmap.c63 p1 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps()
65 p2 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps()
67 p3 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps()
69 p4 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps()
71 p5 = mmap(NULL, len, PROT_READ, in check_aligned_anonymous_unfixed_mmaps()
119 p1 = mmap(NULL, len, PROT_READ, in check_large_anonymous_unfixed_mmap()
162 p3 = mmap(NULL, nlen, PROT_READ, in check_aligned_anonymous_unfixed_colliding_mmaps()
203 p1 = mmap(addr, pagesize, PROT_READ, in check_aligned_anonymous_fixed_mmaps()
261 p1 = mmap(NULL, len, PROT_READ, in check_file_unfixed_mmaps()
264 p2 = mmap(NULL, len, PROT_READ, in check_file_unfixed_mmaps()
[all …]
H A DMakefile.target54 run-test-mmap: test-mmap
55 $(call run-test, test-mmap, $(QEMU) $<, $< (default))
H A Dtest-vma.c14 void *p = mmap(0, l, PROT_NONE, in main()
H A Dprot-none.c22 p = mmap(NULL, pagesize * 2, PROT_READ | PROT_WRITE, in main()
H A Dnoexec.c.inc121 page_base = mmap(NULL, 2 * page_size,
125 handle_err("mmap");
/qemu/tests/avocado/
H A Dtcg_plugins.py13 import mmap
84 mmap.mmap(lf.fileno(), 0, access=mmap.ACCESS_READ) as s:
115 mmap.mmap(lf.fileno(), 0, access=mmap.ACCESS_READ) as s:
145 mmap.mmap(lf.fileno(), 0, access=mmap.ACCESS_READ) as s:
/qemu/contrib/vhost-user-gpu/
H A Dvugbm.c16 buf->mmap = g_malloc(buf->width * buf->height * 4); in mem_alloc_bo()
24 g_free(buf->mmap); in mem_free_bo()
30 return buf->mmap != NULL; in mem_map_bo()
95 buf->mmap = mmap(NULL, udmabuf_get_size(buf), in udmabuf_map_bo()
97 if (buf->mmap == MAP_FAILED) { in udmabuf_map_bo()
121 munmap(buf->mmap, udmabuf_get_size(buf)); in udmabuf_unmap_bo()
162 buf->mmap = gbm_bo_map(buf->bo, 0, 0, buf->width, buf->height, in map_bo()
168 return buf->mmap != NULL; in map_bo()
H A Dvugbm.h50 uint8_t *mmap; member
/qemu/hw/vfio/
H A Dhelpers.c391 munmap(region->mmaps[index].mmap, region->mmaps[index].size); in vfio_subregion_unmap()
393 region->mmaps[index].mmap = NULL; in vfio_subregion_unmap()
409 region->mmaps[i].mmap = mmap(NULL, region->mmaps[i].size, prot, in vfio_region_mmap()
413 if (region->mmaps[i].mmap == MAP_FAILED) { in vfio_region_mmap()
423 region->mmaps[i].mmap = NULL; in vfio_region_mmap()
437 region->mmaps[i].mmap); in vfio_region_mmap()
460 if (region->mmaps[i].mmap) { in vfio_region_unmap()
475 if (region->mmaps[i].mmap) { in vfio_region_exit()
492 if (region->mmaps[i].mmap) { in vfio_region_finalize()
493 munmap(region->mmaps[i].mmap, region->mmaps[i].size); in vfio_region_finalize()
[all …]
/qemu/linux-user/
H A Dmmap.c278 void *ptr = mmap(addr, len, PROT_NONE, in do_munmap()
334 void *p = mmap(host_start, host_page_size, in mmap_frag()
435 ptr = mmap(g2h_untagged(addr), size, PROT_NONE, in mmap_find_vma()
566 p = mmap(want_p, len, host_prot, flags, fd, offset); in mmap_h_eq_g()
645 p = mmap(want_p, len, host_prot, flags, fd, offset); in mmap_h_lt_g()
657 void *t = mmap(p, len - fileend_adj, host_prot, in mmap_h_lt_g()
709 void *t = mmap(p, len - fileend_adj, host_prot, in mmap_h_lt_g()
827 p = mmap(want_p, host_len, host_prot, flags, -1, 0); in mmap_h_gt_g()
829 p = mmap(want_p, host_len, host_prot, flags, fd, in mmap_h_gt_g()
832 p = mmap(want_p, host_len, host_prot | PROT_WRITE, in mmap_h_gt_g()
[all …]
/qemu/util/
H A Dmmap-alloc.c177 return mmap(0, size, PROT_NONE, flags, fd, 0); in mmap_reserve()
207 activated_ptr = mmap(ptr, size, prot, flags | map_sync_flags, fd, in mmap_activate()
232 activated_ptr = mmap(ptr, size, prot, flags, fd, map_offset); in mmap_activate()
/qemu/tests/tcg/multiarch/linux/
H A Dlinux-madvise.c12 page = mmap(NULL, pagesize, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in test_anonymous()
47 page = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE, fd, 0); in test_file()
/qemu/ebpf/
H A Debpf_rss.c56 ctx->mmap_configuration = mmap(NULL, qemu_real_host_page_size(), in ebpf_rss_mmap()
63 ctx->mmap_toeplitz_key = mmap(NULL, qemu_real_host_page_size(), in ebpf_rss_mmap()
70 ctx->mmap_indirections_table = mmap(NULL, qemu_real_host_page_size(), in ebpf_rss_mmap()
/qemu/bsd-user/
H A Dmmap.c172 void *p = mmap(host_start, qemu_host_page_size, prot, in mmap_frag()
282 ptr = mmap(g2h_untagged(addr), size, PROT_NONE, in mmap_find_vma_aligned()
514 p = mmap(g2h_untagged(start), host_len, prot, in target_mmap()
521 p = mmap(g2h_untagged(start), len, prot, in target_mmap()
619 p = mmap(g2h_untagged(real_start), real_end - real_start, in target_mmap()
677 mmap(g2h_untagged(real_start), real_end - real_start, PROT_NONE, in mmap_reserve()
H A Dmeson.build15 'mmap.c',
/qemu/tests/tcg/s390x/
H A Dsignals-s390x.c80 page = mmap(expected.addr, 4096, PROT_READ | PROT_WRITE, in handle_signal()
119 page = mmap(NULL, 4096, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in check_sigsegv()
/qemu/tests/tcg/cris/libc/
H A Dcheck_mmap3.c19 a = mmap (NULL, 0x4c, PROT_READ | PROT_WRITE | PROT_EXEC, in main()
H A Dcheck_mmap1.c41 a = mmap (NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); in main()
H A Dcheck_mmap2.c41 a = mmap (NULL, size, PROT_READ, MAP_SHARED, fd, 0); in main()
/qemu/tests/tcg/i386/
H A Dtest-flags.c23 addr = mmap (NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0); in main()
/qemu/tests/tcg/aarch64/
H A Dtest-826.c33 page = mmap(0, getpagesize(), PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in main()
H A Dmte.h54 void *p = mmap(NULL, size, PROT_READ | PROT_WRITE | PROT_MTE, in alloc_mte_mem()

1234