Searched refs:guest_num_pages (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | memstress.c | 131 uint64_t guest_num_pages, slot0_pages = 0; in memstress_create_vm() local 147 guest_num_pages = vm_adjust_num_guest_pages(mode, in memstress_create_vm() 154 TEST_ASSERT(guest_num_pages % slots == 0, in memstress_create_vm() 171 slot0_pages + guest_num_pages, in memstress_create_vm() 191 TEST_ASSERT(guest_num_pages < region_end_gfn, in memstress_create_vm() 195 guest_num_pages, region_end_gfn - 1, nr_vcpus, vcpu_memory_bytes); in memstress_create_vm() 197 args->gpa = (region_end_gfn - guest_num_pages - 1) * args->guest_page_size; in memstress_create_vm() 203 args->size = guest_num_pages * args->guest_page_size; in memstress_create_vm() 209 uint64_t region_pages = guest_num_pages / slots; in memstress_create_vm() 218 virt_map(vm, guest_test_virt_mem, args->gpa, guest_num_pages); in memstress_create_vm()
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | dirty_log_page_splitting_test.c | 92 uint64_t guest_num_pages; in run_test() local 106 guest_num_pages = (VCPUS * guest_percpu_mem_size) >> vm->page_shift; in run_test() 107 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in run_test() 108 host_num_pages = vm_num_host_pages(mode, guest_num_pages); in run_test()
|
/linux-6.12.1/tools/testing/selftests/kvm/ |
D | dirty_log_test.c | 76 static uint64_t guest_num_pages; variable 107 for (i = 0; i < guest_num_pages; i++) { in guest_code() 115 addr += (guest_random_u64(&guest_rng) % guest_num_pages) in guest_code() 717 guest_num_pages = (1ul << (DIRTY_MEM_BITS - vm->page_shift)) + 3; in run_test() 718 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in run_test() 721 host_num_pages = vm_num_host_pages(mode, guest_num_pages); in run_test() 724 guest_test_phys_mem = (vm->max_gfn - guest_num_pages) * in run_test() 745 guest_num_pages, in run_test() 749 virt_map(vm, guest_test_virt_mem, guest_test_phys_mem, guest_num_pages); in run_test() 758 sync_global_to_guest(vm, guest_num_pages); in run_test()
|
D | kvm_page_table_test.c | 244 uint64_t guest_num_pages; in pre_init_before_test() local 254 guest_num_pages = test_mem_size / guest_page_size; in pre_init_before_test() 255 vm = __vm_create_with_vcpus(VM_SHAPE(mode), nr_vcpus, guest_num_pages, in pre_init_before_test() 260 guest_test_phys_mem = (vm->max_gfn - guest_num_pages) * in pre_init_before_test() 281 TEST_MEM_SLOT_INDEX, guest_num_pages, 0); in pre_init_before_test() 284 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 | 141 uint64_t guest_num_pages; in run_test() local 158 guest_num_pages = (nr_vcpus * guest_percpu_mem_size) >> vm->page_shift; in run_test() 159 guest_num_pages = vm_adjust_num_guest_pages(mode, guest_num_pages); in run_test() 160 host_num_pages = vm_num_host_pages(mode, guest_num_pages); in run_test()
|