Searched refs:guest_num_pages (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/include/ |
D | perf_test_util.h | 98 uint64_t guest_num_pages; in create_vm() local 129 guest_num_pages = (vcpus * vcpu_memory_bytes) / in create_vm() 131 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in create_vm() 137 TEST_ASSERT(guest_num_pages < vm_get_max_gfn(vm), in create_vm() 140 guest_num_pages, vm_get_max_gfn(vm), vcpus, in create_vm() 146 guest_test_phys_mem = (vm_get_max_gfn(vm) - guest_num_pages) * in create_vm() 161 guest_num_pages, 0); in create_vm() 164 virt_map(vm, guest_test_virt_mem, guest_test_phys_mem, guest_num_pages, 0); in create_vm()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 68 static uint64_t guest_num_pages; variable 100 for (i = 0; i < guest_num_pages; i++) { in guest_code() 108 addr += (READ_ONCE(random_array[i]) % guest_num_pages) in guest_code() 408 guest_num_pages = (1ul << (DIRTY_MEM_BITS - in run_test() 410 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in run_test() 413 host_num_pages = vm_num_host_pages(mode, guest_num_pages); in run_test() 417 guest_num_pages) * guest_page_size; in run_test() 437 guest_num_pages, in run_test() 441 virt_map(vm, guest_test_virt_mem, guest_test_phys_mem, guest_num_pages, 0); in run_test() 455 sync_global_to_guest(vm, guest_num_pages); in run_test()
|
D | dirty_log_perf_test.c | 101 uint64_t guest_num_pages; in run_test() local 118 guest_num_pages = (nr_vcpus * guest_percpu_mem_size) >> vm_get_page_shift(vm); in run_test() 119 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in run_test() 120 host_num_pages = vm_num_host_pages(mode, guest_num_pages); in run_test()
|