Searched refs:pages_per_slot (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | dirty_log_perf_test.c | 171 int slots, uint64_t pages_per_slot) in clear_dirty_log() argument 178 kvm_vm_clear_dirty_log(vm, slot, bitmaps[i], 0, pages_per_slot); in clear_dirty_log() 182 static unsigned long **alloc_bitmaps(int slots, uint64_t pages_per_slot) in alloc_bitmaps() argument 191 bitmaps[i] = bitmap_zalloc(pages_per_slot); in alloc_bitmaps() 215 uint64_t pages_per_slot; in run_test() local 233 pages_per_slot = host_num_pages / p->slots; in run_test() 235 bitmaps = alloc_bitmaps(p->slots, pages_per_slot); in run_test() 302 clear_dirty_log(vm, bitmaps, p->slots, pages_per_slot); in run_test()
|
D | memslot_perf_test.c | 95 uint64_t pages_per_slot; member 203 slot = min(gpage / data->pages_per_slot, (uint64_t)data->nslots - 1); in vm_gpa2hva() 204 slotoffs = gpage - (slot * data->pages_per_slot); in vm_gpa2hva() 210 slotpages = data->npages - slot * data->pages_per_slot; in vm_gpa2hva() 212 slotpages = data->pages_per_slot; in vm_gpa2hva() 227 return MEM_GPA + slot * data->pages_per_slot * 4096; in vm_slot2gpa() 269 data->pages_per_slot = mempages / data->nslots; in prepare_vm() 270 if (!data->pages_per_slot) { in prepare_vm() 283 max_mem_slots - 1, data->pages_per_slot, rempages); in prepare_vm() 289 npages = data->pages_per_slot; in prepare_vm() [all …]
|