Home
last modified time | relevance | path

Searched refs:guest_page_size (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/tools/testing/selftests/kvm/
Dmemslot_perf_test.c97 uint32_t guest_page_size; member
193 uint32_t guest_page_size = data->vm->page_size; in vm_gpa2hva() local
196 TEST_ASSERT(gpa < MEM_GPA + data->npages * guest_page_size, in vm_gpa2hva()
200 gpage = gpa / guest_page_size; in vm_gpa2hva()
201 pgoffs = gpa % guest_page_size; in vm_gpa2hva()
219 return (uint8_t *)base + slotoffs * guest_page_size + pgoffs; in vm_gpa2hva()
224 uint32_t guest_page_size = data->vm->page_size; in vm_slot2gpa() local
228 return MEM_GPA + slot * data->pages_per_slot * guest_page_size; in vm_slot2gpa()
245 static bool check_slot_pages(uint32_t host_page_size, uint32_t guest_page_size, in check_slot_pages() argument
251 if ((pages_per_slot * guest_page_size) % host_page_size) in check_slot_pages()
[all …]
Dpre_fault_memory_test.c79 uint64_t alignment, guest_page_size; in __test_pre_fault_memory() local
83 alignment = guest_page_size = vm_guest_mode_params[VM_MODE_DEFAULT].page_size; in __test_pre_fault_memory()
84 guest_test_phys_mem = (vm->max_gfn - TEST_NPAGES) * guest_page_size; in __test_pre_fault_memory()
86 alignment = max(0x100000UL, guest_page_size); in __test_pre_fault_memory()
Dkvm_page_table_test.c241 uint64_t guest_page_size = vm_guest_mode_params[mode].page_size; in pre_init_before_test() local
250 alignment = max(large_page_size, guest_page_size); in pre_init_before_test()
254 guest_num_pages = test_mem_size / guest_page_size; in pre_init_before_test()
261 guest_page_size; in pre_init_before_test()
Ddirty_log_test.c75 static uint64_t guest_page_size; variable
108 addr = guest_test_virt_mem + i * guest_page_size; in guest_code()
116 * guest_page_size; in guest_code()
712 guest_page_size = vm->page_size; in run_test()
725 guest_page_size; in run_test()
756 sync_global_to_guest(vm, guest_page_size); in run_test()
Daccess_tracking_perf_test.c149 uint64_t gva = base_gva + page * memstress_args.guest_page_size; in mark_vcpu_memory_idle()
Ddemand_paging_test.c179 vcpu_args->pages * memstress_args.guest_page_size); in run_test()
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Dmemstress.c67 for (i = 0; i < sizeof(memstress_args); i += args->guest_page_size) in memstress_guest_code()
76 addr = gva + (page * args->guest_page_size); in memstress_guest_code()
107 args->guest_page_size; in memstress_setup_vcpus()
112 args->guest_page_size; in memstress_setup_vcpus()
120 (vcpu_args->pages * args->guest_page_size)); in memstress_setup_vcpus()
145 args->guest_page_size = vm_guest_mode_params[mode].page_size; in memstress_create_vm()
148 (nr_vcpus * vcpu_memory_bytes) / args->guest_page_size); in memstress_create_vm()
152 TEST_ASSERT(vcpu_memory_bytes % args->guest_page_size == 0, in memstress_create_vm()
185 region_end_gfn = min(region_end_gfn, (1UL << 48) / args->guest_page_size); in memstress_create_vm()
197 args->gpa = (region_end_gfn - guest_num_pages - 1) * args->guest_page_size; in memstress_create_vm()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dpage_fault_test.c578 uint64_t guest_page_size = vm->page_size; in setup_memslots() local
590 pt_size = 26 * guest_page_size; in setup_memslots()
594 data_size = align_up(guest_page_size, backing_src_pagesz); in setup_memslots()
595 data_gpa = (max_gfn * guest_page_size) - data_size; in setup_memslots()
604 PAGE_TABLE_MEMSLOT, pt_size / guest_page_size, in setup_memslots()
609 data_size / guest_page_size, in setup_memslots()
/linux-6.12.1/tools/testing/selftests/kvm/include/
Dmemstress.h37 uint64_t guest_page_size; member