Lines Matching full:slots
126 uint64_t vcpu_memory_bytes, int slots, in memstress_create_vm() argument
155 TEST_ASSERT(guest_num_pages % slots == 0, in memstress_create_vm()
156 "Guest memory cannot be evenly divided into %d slots.", in memstress_create_vm()
157 slots); in memstress_create_vm()
207 /* Add extra memory slots for testing */ in memstress_create_vm()
208 for (i = 0; i < slots; i++) { in memstress_create_vm()
209 uint64_t region_pages = guest_num_pages / slots; in memstress_create_vm()
328 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging() argument
332 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
340 void memstress_enable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_enable_dirty_logging() argument
342 toggle_dirty_logging(vm, slots, true); in memstress_enable_dirty_logging()
345 void memstress_disable_dirty_logging(struct kvm_vm *vm, int slots) in memstress_disable_dirty_logging() argument
347 toggle_dirty_logging(vm, slots, false); in memstress_disable_dirty_logging()
350 void memstress_get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots) in memstress_get_dirty_log() argument
354 for (i = 0; i < slots; i++) { in memstress_get_dirty_log()
362 int slots, uint64_t pages_per_slot) in memstress_clear_dirty_log() argument
366 for (i = 0; i < slots; i++) { in memstress_clear_dirty_log()
373 unsigned long **memstress_alloc_bitmaps(int slots, uint64_t pages_per_slot) in memstress_alloc_bitmaps() argument
378 bitmaps = malloc(slots * sizeof(bitmaps[0])); in memstress_alloc_bitmaps()
381 for (i = 0; i < slots; i++) { in memstress_alloc_bitmaps()
389 void memstress_free_bitmaps(unsigned long *bitmaps[], int slots) in memstress_free_bitmaps() argument
393 for (i = 0; i < slots; i++) in memstress_free_bitmaps()