Lines Matching refs:bitmaps
118 static void get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots) in get_dirty_log() argument
125 kvm_vm_get_dirty_log(vm, slot, bitmaps[i]); in get_dirty_log()
129 static void clear_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], in clear_dirty_log() argument
137 kvm_vm_clear_dirty_log(vm, slot, bitmaps[i], 0, pages_per_slot); in clear_dirty_log()
143 unsigned long **bitmaps; in alloc_bitmaps() local
146 bitmaps = malloc(slots * sizeof(bitmaps[0])); in alloc_bitmaps()
147 TEST_ASSERT(bitmaps, "Failed to allocate bitmaps array."); in alloc_bitmaps()
150 bitmaps[i] = bitmap_zalloc(pages_per_slot); in alloc_bitmaps()
151 TEST_ASSERT(bitmaps[i], "Failed to allocate slot bitmap."); in alloc_bitmaps()
154 return bitmaps; in alloc_bitmaps()
157 static void free_bitmaps(unsigned long *bitmaps[], int slots) in free_bitmaps() argument
162 free(bitmaps[i]); in free_bitmaps()
164 free(bitmaps); in free_bitmaps()
171 unsigned long **bitmaps; in run_test() local
195 bitmaps = alloc_bitmaps(p->slots, pages_per_slot); in run_test()
253 get_dirty_log(vm, bitmaps, p->slots); in run_test()
262 clear_dirty_log(vm, bitmaps, p->slots, pages_per_slot); in run_test()
294 free_bitmaps(bitmaps, p->slots); in run_test()