Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c25 memset(addr_gpa2hva(vm, paddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_arch_pgd_alloc()
42 memset(addr_gpa2hva(vm, taddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_alloc_region()
72 entry = addr_gpa2hva(vm, vm->pgd); in virt_arch_pg_map()
77 entry = addr_gpa2hva(vm, entry[idx] & REGION_ENTRY_ORIGIN); in virt_arch_pg_map()
96 entry = addr_gpa2hva(vm, vm->pgd); in addr_arch_gva2gpa()
102 entry = addr_gpa2hva(vm, entry[idx] & REGION_ENTRY_ORIGIN); in addr_arch_gva2gpa()
119 pte = addr_gpa2hva(vm, ptea); in virt_dump_ptes()
133 entry = addr_gpa2hva(vm, addr); in virt_dump_region()
/linux-6.1.9/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c108 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, vaddr) * 8; in _virt_pg_map()
114 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, vaddr) * 8; in _virt_pg_map()
119 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, vaddr) * 8; in _virt_pg_map()
124 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, vaddr) * 8; in _virt_pg_map()
148 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, gva) * 8; in addr_arch_gva2gpa()
154 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, gva) * 8; in addr_arch_gva2gpa()
159 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, gva) * 8; in addr_arch_gva2gpa()
164 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, gva) * 8; in addr_arch_gva2gpa()
189 ptep = addr_gpa2hva(vm, pte); in pte_dump()
207 ptep = addr_gpa2hva(vm, pgd); in virt_arch_dump()
/linux-6.1.9/tools/testing/selftests/kvm/lib/riscv/
Dprocessor.c86 ptep = addr_gpa2hva(vm, vm->pgd) + pte_index(vm, vaddr, level) * 8; in virt_arch_pg_map()
95 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + in virt_arch_pg_map()
119 ptep = addr_gpa2hva(vm, vm->pgd) + pte_index(vm, gva, level) * 8; in addr_arch_gva2gpa()
125 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + in addr_arch_gva2gpa()
151 ptep = addr_gpa2hva(vm, pte); in pte_dump()
171 ptep = addr_gpa2hva(vm, pgd); in virt_arch_dump()
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c137 uint64_t *page_table = addr_gpa2hva(vm, pt_pfn << vm->page_shift); in virt_get_pte()
287 pml4e = addr_gpa2hva(vm, vm->pgd); in _vm_get_page_table_entry()
293 pdpe = addr_gpa2hva(vm, PTE_GET_PFN(pml4e[index[3]]) * vm->page_size); in _vm_get_page_table_entry()
301 pde = addr_gpa2hva(vm, PTE_GET_PFN(pdpe[index[2]]) * vm->page_size); in _vm_get_page_table_entry()
309 pte = addr_gpa2hva(vm, PTE_GET_PFN(pde[index[1]]) * vm->page_size); in _vm_get_page_table_entry()
347 pml4e_start = (uint64_t *) addr_gpa2hva(vm, vm->pgd); in virt_arch_dump()
359 pdpe_start = addr_gpa2hva(vm, *pml4e & PHYSICAL_PAGE_MASK); in virt_arch_dump()
372 pde_start = addr_gpa2hva(vm, *pdpe & PHYSICAL_PAGE_MASK); in virt_arch_dump()
384 pte_start = addr_gpa2hva(vm, *pde & PHYSICAL_PAGE_MASK); in virt_arch_dump()
529 pml4e = addr_gpa2hva(vm, vm->pgd); in addr_arch_gva2gpa()
[all …]
Dvmx.c458 pt = addr_gpa2hva(vm, pte->address * vm->page_size); in __nested_pg_map()
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dsmm_test.c150 memset(addr_gpa2hva(vm, SMRAM_GPA), 0x0, SMRAM_SIZE); in main()
151 memcpy(addr_gpa2hva(vm, SMRAM_GPA) + 0x8000, smi_handler, in main()
Dxen_shinfo_test.c455 struct shared_info *shinfo = addr_gpa2hva(vm, SHINFO_VADDR); in main()
599 vinfo = addr_gpa2hva(vm, VCPU_INFO_VADDR); in main()
602 struct vcpu_runstate_info *rs = addr_gpa2hva(vm, RUNSTATE_ADDR); in main()
956 wc = addr_gpa2hva(vm, SHINFO_REGION_GPA + 0xc00); in main()
957 ti = addr_gpa2hva(vm, SHINFO_REGION_GPA + 0x40 + 0x20); in main()
958 ti2 = addr_gpa2hva(vm, PVTIME_ADDR); in main()
Dvmx_dirty_log_test.c114 host_test_mem = addr_gpa2hva(vm, GUEST_TEST_MEM); in main()
Dnx_huge_pages_test.c154 hva = addr_gpa2hva(vm, HPAGE_GPA); in run_test()
Demulator_error_test.c179 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in main()
/linux-6.1.9/tools/testing/selftests/kvm/
Dset_memory_region_test.c134 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in spawn_vm()
185 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in test_move_memory_region()
Dkvm_page_table_test.c289 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in pre_init_before_test()
Ddemand_paging_test.c317 vcpu_hva = addr_gpa2hva(vm, vcpu_args->gpa); in run_test()
Ddirty_log_test.c757 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in run_test()
Dmemslot_perf_test.c313 data->hva_slots[slot] = addr_gpa2hva(data->vm, guest_addr); in prepare_vm()
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dkvm_util.c1353 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa) in addr_gpa2hva() function
1867 return addr_gpa2hva(vm, addr_gva2gpa(vm, gva)); in addr_gva2hva()
/linux-6.1.9/tools/testing/selftests/kvm/include/
Dkvm_util_base.h392 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa);