Searched refs:guest_mem (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/ |
H A D | mem_partial.c | 59 void *guest_mem; in main() local 92 guest_mem = mmap(NULL, TOTAL_SZ, PROT_READ | PROT_WRITE, MAP_SHARED, in main() 94 if (guest_mem == MAP_FAILED) { in main() 101 uint8_t *ptr = guest_mem + gpa; in main() 107 if (guest_mem == NULL) { in main() 114 uint8_t *ptr = guest_mem + gpa; in main() 138 volatile uint8_t *ptr = guest_mem; in main() 154 res = munmap(guest_mem, TOTAL_SZ); in main() 159 guest_mem = mmap(NULL, TOTAL_SZ, PROT_READ | PROT_WRITE, MAP_SHARED, in main() 161 if (guest_mem == MAP_FAILED) { in main() [all …]
|
H A D | mem_devmem.c | 80 void *guest_mem; in main() local 81 guest_mem = mmap(NULL, WHOLE_SZ, PROT_READ, MAP_SHARED, fd, 0); in main() 82 if (guest_mem == MAP_FAILED) { in main() 122 datap = guest_mem; in main() 128 datap = (guest_mem + SEG_SZ); in main() 136 res = munmap(guest_mem, WHOLE_SZ); in main()
|
H A D | mem_seg_map.c | 42 void *seg_obj, *guest_mem; in main() local 83 guest_mem = mmap(NULL, SEG_SZ, PROT_READ | PROT_WRITE, MAP_SHARED, in main() 93 uint64_t *p = (uint64_t *)((uintptr_t)guest_mem + off); in main() 120 res = munmap(guest_mem, SEG_SZ); in main()
|