/linux-6.12.1/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 26 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/ |
D | processor.c | 148 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/ |
D | processor.c | 101 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/ |
D | smm_test.c | 148 memset(addr_gpa2hva(vm, SMRAM_GPA), 0x0, SMRAM_SIZE); in main() 149 memcpy(addr_gpa2hva(vm, SMRAM_GPA) + 0x8000, smi_handler, in main()
|
D | xen_shinfo_test.c | 464 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()
|
D | smaller_maxphyaddr_emulation_test.c | 73 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in main()
|
D | hyperv_extended_hypercalls.c | 76 outval = addr_gpa2hva(vm, run->hyperv.u.hcall.params[1]); in main()
|
D | vmx_dirty_log_test.c | 130 host_test_mem = addr_gpa2hva(vm, GUEST_TEST_MEM); in test_vmx_dirty_log()
|
D | nx_huge_pages_test.c | 149 hva = addr_gpa2hva(vm, HPAGE_GPA); in run_test()
|
D | private_mem_conversions_test.c | 350 uint8_t *hva = addr_gpa2hva(vm, gpa + i); in __test_mem_conversions()
|
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/ |
D | sev.h | 89 .uaddr = (unsigned long)addr_gpa2hva(vm, gpa), in sev_launch_update_data()
|
/linux-6.12.1/tools/testing/selftests/kvm/s390x/ |
D | debug_test.c | 28 lowcore = addr_gpa2hva(vm, 0); in test_step_int_1()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 143 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()
|
D | vmx.c | 438 pt = addr_gpa2hva(vm, pte->address * vm->page_size); in __nested_pg_map()
|
/linux-6.12.1/tools/testing/selftests/kvm/ |
D | set_memory_region_test.c | 133 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in spawn_vm() 190 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in test_move_memory_region()
|
D | demand_paging_test.c | 196 vcpu_hva = addr_gpa2hva(vm, vcpu_args->gpa); in run_test()
|
D | kvm_page_table_test.c | 287 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in pre_init_before_test()
|
D | dirty_log_test.c | 752 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in run_test()
|
D | memslot_perf_test.c | 344 data->hva_slots[slot - 1] = addr_gpa2hva(data->vm, guest_addr); in prepare_vm()
|
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/ |
D | vgic_lpi_stress.c | 171 u8 *tbl = addr_gpa2hva(vm, test_data.lpi_prop_table); in configure_lpis()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1541 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/ |
D | kvm_util.h | 612 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa);
|