Home
last modified time | relevance | path

Searched refs:SEG_SZ (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/
H A Dmem_devmem.c38 #define SEG_SZ (PAGE_CNT * PAGE_SZ) macro
39 #define WHOLE_SZ (SEG_SZ * 2)
58 res = alloc_memseg(ctx, SEG_LOWMEM, SEG_SZ, ""); in main()
63 res = alloc_memseg(ctx, SEG_BOOTROM, SEG_SZ, "bootrom"); in main()
69 res = vm_mmap_memseg(ctx, 0, SEG_LOWMEM, 0, SEG_SZ, PROT_ALL); in main()
74 res = vm_mmap_memseg(ctx, SEG_SZ, SEG_BOOTROM, 0, SEG_SZ, PROT_READ); in main()
95 direct_lowmem = mmap(NULL, SEG_SZ, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
107 direct_bootrom = mmap(NULL, SEG_SZ, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
128 datap = (guest_mem + SEG_SZ); in main()
141 res = munmap(direct_lowmem, SEG_SZ); in main()
[all …]
H A Dmem_seg_map.c35 #define SEG_SZ (PAGE_CNT * PAGE_SZ) macro
52 res = alloc_memseg(ctx, TEST_SEGID, SEG_SZ, "test_seg"); in main()
64 seg_obj = mmap(NULL, SEG_SZ, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
78 res = vm_mmap_memseg(ctx, 0, TEST_SEGID, 0, SEG_SZ, PROT_ALL); in main()
83 guest_mem = mmap(NULL, SEG_SZ, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
120 res = munmap(guest_mem, SEG_SZ); in main()
125 res = munmap(seg_obj, SEG_SZ); in main()