/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 25 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/ |
D | processor.c | 108 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/ |
D | processor.c | 86 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/ |
D | processor.c | 137 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 …]
|
D | vmx.c | 458 pt = addr_gpa2hva(vm, pte->address * vm->page_size); in __nested_pg_map()
|
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/ |
D | smm_test.c | 150 memset(addr_gpa2hva(vm, SMRAM_GPA), 0x0, SMRAM_SIZE); in main() 151 memcpy(addr_gpa2hva(vm, SMRAM_GPA) + 0x8000, smi_handler, in main()
|
D | xen_shinfo_test.c | 455 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()
|
D | vmx_dirty_log_test.c | 114 host_test_mem = addr_gpa2hva(vm, GUEST_TEST_MEM); in main()
|
D | nx_huge_pages_test.c | 154 hva = addr_gpa2hva(vm, HPAGE_GPA); in run_test()
|
D | emulator_error_test.c | 179 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in main()
|
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | set_memory_region_test.c | 134 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in spawn_vm() 185 hva = addr_gpa2hva(vm, MEM_REGION_GPA); in test_move_memory_region()
|
D | kvm_page_table_test.c | 289 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in pre_init_before_test()
|
D | demand_paging_test.c | 317 vcpu_hva = addr_gpa2hva(vm, vcpu_args->gpa); in run_test()
|
D | dirty_log_test.c | 757 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in run_test()
|
D | memslot_perf_test.c | 313 data->hva_slots[slot] = addr_gpa2hva(data->vm, guest_addr); in prepare_vm()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1353 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/ |
D | kvm_util_base.h | 392 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa);
|