Home
last modified time | relevance | path

Searched refs:addr_gpa2hva (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c26 memset(addr_gpa2hva(vm, paddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_arch_pgd_alloc()
43 memset(addr_gpa2hva(vm, taddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_alloc_region()
73 entry = addr_gpa2hva(vm, vm->pgd); in virt_arch_pg_map()
78 entry = addr_gpa2hva(vm, entry[idx] & REGION_ENTRY_ORIGIN); in virt_arch_pg_map()
97 entry = addr_gpa2hva(vm, vm->pgd); in addr_arch_gva2gpa()
103 entry = addr_gpa2hva(vm, entry[idx] & REGION_ENTRY_ORIGIN); in addr_arch_gva2gpa()
120 pte = addr_gpa2hva(vm, ptea); in virt_dump_ptes()
134 entry = addr_gpa2hva(vm, addr); in virt_dump_region()
/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c148 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, vaddr) * 8; in _virt_pg_map()
154 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, vaddr) * 8; in _virt_pg_map()
159 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, vaddr) * 8; in _virt_pg_map()
164 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, vaddr) * 8; in _virt_pg_map()
187 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, gva) * 8; in virt_get_pte_hva()
193 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, gva) * 8; in virt_get_pte_hva()
198 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, gva) * 8; in virt_get_pte_hva()
203 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, gva) * 8; in virt_get_pte_hva()
235 ptep = addr_gpa2hva(vm, pte); in pte_dump()
253 ptep = addr_gpa2hva(vm, pgd); in virt_arch_dump()
/linux-6.12.1/tools/testing/selftests/kvm/lib/riscv/
Dprocessor.c101 ptep = addr_gpa2hva(vm, vm->pgd) + pte_index(vm, vaddr, level) * 8; in virt_arch_pg_map()
110 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + in virt_arch_pg_map()
134 ptep = addr_gpa2hva(vm, vm->pgd) + pte_index(vm, gva, level) * 8; in addr_arch_gva2gpa()
140 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + in addr_arch_gva2gpa()
166 ptep = addr_gpa2hva(vm, pte); in pte_dump()
186 ptep = addr_gpa2hva(vm, pgd); in virt_arch_dump()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dsmm_test.c148 memset(addr_gpa2hva(vm, SMRAM_GPA), 0x0, SMRAM_SIZE); in main()
149 memcpy(addr_gpa2hva(vm, SMRAM_GPA) + 0x8000, smi_handler, in main()
Dxen_shinfo_test.c464 shinfo = addr_gpa2hva(vm, SHINFO_VADDR); in main()
625 vinfo = addr_gpa2hva(vm, VCPU_INFO_VADDR); in main()
628 struct vcpu_runstate_info *rs = addr_gpa2hva(vm, RUNSTATE_ADDR); in main()
1006 wc = addr_gpa2hva(vm, SHINFO_REGION_GPA + 0xc00); in main()
1007 ti = addr_gpa2hva(vm, SHINFO_REGION_GPA + 0x40 + 0x20); in main()
1008 ti2 = addr_gpa2hva(vm, PVTIME_ADDR); in main()
1086 rs = addr_gpa2hva(vm, runstate_addr); in main()
Dsmaller_maxphyaddr_emulation_test.c73 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in main()
Dhyperv_extended_hypercalls.c76 outval = addr_gpa2hva(vm, run->hyperv.u.hcall.params[1]); in main()
Dvmx_dirty_log_test.c130 host_test_mem = addr_gpa2hva(vm, GUEST_TEST_MEM); in test_vmx_dirty_log()
Dnx_huge_pages_test.c149 hva = addr_gpa2hva(vm, HPAGE_GPA); in run_test()
Dprivate_mem_conversions_test.c350 uint8_t *hva = addr_gpa2hva(vm, gpa + i); in __test_mem_conversions()
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/
Dsev.h89 .uaddr = (unsigned long)addr_gpa2hva(vm, gpa), in sev_launch_update_data()
/linux-6.12.1/tools/testing/selftests/kvm/s390x/
Ddebug_test.c28 lowcore = addr_gpa2hva(vm, 0); in test_step_int_1()
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c143 uint64_t *page_table = addr_gpa2hva(vm, pt_gpa); in virt_get_pte()
339 pml4e_start = (uint64_t *) addr_gpa2hva(vm, vm->pgd); in virt_arch_dump()
351 pdpe_start = addr_gpa2hva(vm, *pml4e & PHYSICAL_PAGE_MASK); in virt_arch_dump()
364 pde_start = addr_gpa2hva(vm, *pdpe & PHYSICAL_PAGE_MASK); in virt_arch_dump()
376 pte_start = addr_gpa2hva(vm, *pde & PHYSICAL_PAGE_MASK); in virt_arch_dump()
Dvmx.c438 pt = addr_gpa2hva(vm, pte->address * vm->page_size); in __nested_pg_map()
/linux-6.12.1/tools/testing/selftests/kvm/
Dset_memory_region_test.c133 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in spawn_vm()
190 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in test_move_memory_region()
Ddemand_paging_test.c196 vcpu_hva = addr_gpa2hva(vm, vcpu_args->gpa); in run_test()
Dkvm_page_table_test.c287 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in pre_init_before_test()
Ddirty_log_test.c752 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in run_test()
Dmemslot_perf_test.c344 data->hva_slots[slot - 1] = addr_gpa2hva(data->vm, guest_addr); in prepare_vm()
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvgic_lpi_stress.c171 u8 *tbl = addr_gpa2hva(vm, test_data.lpi_prop_table); in configure_lpis()
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Dkvm_util.c1541 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa) in addr_gpa2hva() function
2082 return addr_gpa2hva(vm, addr_gva2gpa(vm, gva)); in addr_gva2hva()
/linux-6.12.1/tools/testing/selftests/kvm/include/
Dkvm_util.h612 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa);