Searched refs:pages_per_slot (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/tools/testing/selftests/kvm/ |
D | memslot_perf_test.c | 89 uint64_t pages_per_slot; member 202 slot = min(gpage / data->pages_per_slot, (uint64_t)data->nslots - 1); in vm_gpa2hva() 203 slotoffs = gpage - (slot * data->pages_per_slot); in vm_gpa2hva() 209 slotpages = data->npages - slot * data->pages_per_slot; in vm_gpa2hva() 211 slotpages = data->pages_per_slot; in vm_gpa2hva() 228 return MEM_GPA + slot * data->pages_per_slot * guest_page_size; in vm_slot2gpa() 246 uint64_t pages_per_slot, uint64_t rempages) in check_slot_pages() argument 248 if (!pages_per_slot) in check_slot_pages() 251 if ((pages_per_slot * guest_page_size) % host_page_size) in check_slot_pages() 264 uint64_t mempages, pages_per_slot, rempages; in get_max_slots() local [all …]
|
D | dirty_log_perf_test.c | 143 uint64_t pages_per_slot; in run_test() local 161 pages_per_slot = host_num_pages / p->slots; in run_test() 163 bitmaps = memstress_alloc_bitmaps(p->slots, pages_per_slot); in run_test() 243 pages_per_slot); in run_test()
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | dirty_log_page_splitting_test.c | 94 uint64_t pages_per_slot; in run_test() local 109 pages_per_slot = host_num_pages / SLOTS; in run_test() 110 TEST_ASSERT_EQ(host_num_pages, pages_per_slot * SLOTS); in run_test() 114 bitmaps = memstress_alloc_bitmaps(SLOTS, pages_per_slot); in run_test() 145 memstress_clear_dirty_log(vm, bitmaps, SLOTS, pages_per_slot); in run_test()
|
/linux-6.12.1/tools/testing/selftests/kvm/include/ |
D | memstress.h | 78 int slots, uint64_t pages_per_slot); 79 unsigned long **memstress_alloc_bitmaps(int slots, uint64_t pages_per_slot);
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | memstress.c | 356 int slots, uint64_t pages_per_slot) in memstress_clear_dirty_log() argument 363 kvm_vm_clear_dirty_log(vm, slot, bitmaps[i], 0, pages_per_slot); in memstress_clear_dirty_log() 367 unsigned long **memstress_alloc_bitmaps(int slots, uint64_t pages_per_slot) in memstress_alloc_bitmaps() argument 376 bitmaps[i] = bitmap_zalloc(pages_per_slot); in memstress_alloc_bitmaps()
|