Searched refs:guest_num_pages (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/tools/testing/selftests/kvm/lib/ |
D | perf_test_util.c | 116 uint64_t guest_num_pages, slot0_pages = 0; in perf_test_create_vm() local 132 guest_num_pages = vm_adjust_num_guest_pages(mode, in perf_test_create_vm() 139 TEST_ASSERT(guest_num_pages % slots == 0, in perf_test_create_vm() 155 vm = __vm_create_with_vcpus(mode, nr_vcpus, slot0_pages + guest_num_pages, in perf_test_create_vm() 175 TEST_ASSERT(guest_num_pages < region_end_gfn, in perf_test_create_vm() 179 guest_num_pages, region_end_gfn - 1, nr_vcpus, vcpu_memory_bytes); in perf_test_create_vm() 181 pta->gpa = (region_end_gfn - guest_num_pages - 1) * pta->guest_page_size; in perf_test_create_vm() 187 pta->size = guest_num_pages * pta->guest_page_size; in perf_test_create_vm() 193 uint64_t region_pages = guest_num_pages / slots; in perf_test_create_vm() 202 virt_map(vm, guest_test_virt_mem, pta->gpa, guest_num_pages); in perf_test_create_vm()
|
/Linux-v6.1/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 75 static uint64_t guest_num_pages; variable 107 for (i = 0; i < guest_num_pages; i++) { in guest_code() 115 addr += (READ_ONCE(random_array[i]) % guest_num_pages) in guest_code() 722 guest_num_pages = (1ul << (DIRTY_MEM_BITS - vm->page_shift)) + 3; in run_test() 723 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in run_test() 726 host_num_pages = vm_num_host_pages(mode, guest_num_pages); in run_test() 729 guest_test_phys_mem = (vm->max_gfn - guest_num_pages) * in run_test() 750 guest_num_pages, in run_test() 754 virt_map(vm, guest_test_virt_mem, guest_test_phys_mem, guest_num_pages); in run_test() 765 sync_global_to_guest(vm, guest_num_pages); in run_test()
|
D | kvm_page_table_test.c | 246 uint64_t guest_num_pages; in pre_init_before_test() local 256 guest_num_pages = test_mem_size / guest_page_size; in pre_init_before_test() 257 vm = __vm_create_with_vcpus(mode, nr_vcpus, guest_num_pages, in pre_init_before_test() 262 guest_test_phys_mem = (vm->max_gfn - guest_num_pages) * in pre_init_before_test() 283 TEST_MEM_SLOT_INDEX, guest_num_pages, 0); in pre_init_before_test() 286 virt_map(vm, guest_test_virt_mem, guest_test_phys_mem, guest_num_pages); in pre_init_before_test()
|
D | dirty_log_perf_test.c | 213 uint64_t guest_num_pages; in run_test() local 230 guest_num_pages = (nr_vcpus * guest_percpu_mem_size) >> vm->page_shift; in run_test() 231 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in run_test() 232 host_num_pages = vm_num_host_pages(mode, guest_num_pages); in run_test()
|