Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c30 memset(addr_gpa2hva(vm, paddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_pgd_alloc()
47 memset(addr_gpa2hva(vm, taddr), 0xff, PAGES_PER_REGION * vm->page_size); in virt_alloc_region()
94 entry = addr_gpa2hva(vm, vm->pgd); in virt_pg_map()
99 entry = addr_gpa2hva(vm, entry[idx] & REGION_ENTRY_ORIGIN); in virt_pg_map()
138 entry = addr_gpa2hva(vm, vm->pgd); in addr_gva2gpa()
144 entry = addr_gpa2hva(vm, entry[idx] & REGION_ENTRY_ORIGIN); in addr_gva2gpa()
161 pte = addr_gpa2hva(vm, ptea); in virt_dump_ptes()
175 entry = addr_gpa2hva(vm, addr); in virt_dump_region()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c108 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, vaddr) * 8; in _virt_pg_map()
116 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, vaddr) * 8; in _virt_pg_map()
123 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, vaddr) * 8; in _virt_pg_map()
130 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, vaddr) * 8; in _virt_pg_map()
155 ptep = addr_gpa2hva(vm, vm->pgd) + pgd_index(vm, gva) * 8; in addr_gva2gpa()
161 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pud_index(vm, gva) * 8; in addr_gva2gpa()
166 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pmd_index(vm, gva) * 8; in addr_gva2gpa()
171 ptep = addr_gpa2hva(vm, pte_addr(vm, *ptep)) + pte_index(vm, gva) * 8; in addr_gva2gpa()
197 ptep = addr_gpa2hva(vm, pte); in pte_dump()
215 ptep = addr_gpa2hva(vm, pgd); in virt_dump()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c290 pml4e = addr_gpa2hva(vm, vm->pgd); in virt_pg_map()
301 pdpe = addr_gpa2hva(vm, pml4e[index[3]].address * vm->page_size); in virt_pg_map()
312 pde = addr_gpa2hva(vm, pdpe[index[2]].address * vm->page_size); in virt_pg_map()
323 pte = addr_gpa2hva(vm, pde[index[1]].address * vm->page_size); in virt_pg_map()
358 pml4e_start = (struct pageMapL4Entry *) addr_gpa2hva(vm, in virt_dump()
371 pdpe_start = addr_gpa2hva(vm, pml4e->address in virt_dump()
385 pde_start = addr_gpa2hva(vm, in virt_dump()
398 pte_start = addr_gpa2hva(vm, in virt_dump()
560 pml4e = addr_gpa2hva(vm, vm->pgd); in addr_gva2gpa()
564 pdpe = addr_gpa2hva(vm, pml4e[index[3]].address * vm->page_size); in addr_gva2gpa()
[all …]
Dvmx.c433 pdpe = addr_gpa2hva(vm, pml4e[index[3]].address * vm->page_size); in nested_pg_map()
445 pde = addr_gpa2hva(vm, pdpe[index[2]].address * vm->page_size); in nested_pg_map()
457 pte = addr_gpa2hva(vm, pde[index[1]].address * vm->page_size); in nested_pg_map()
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dsmm_test.c110 memset(addr_gpa2hva(vm, SMRAM_GPA), 0x0, SMRAM_SIZE); in main()
111 memcpy(addr_gpa2hva(vm, SMRAM_GPA) + 0x8000, smi_handler, in main()
Dvmx_dirty_log_test.c117 host_test_mem = addr_gpa2hva(vm, GUEST_TEST_MEM); in main()
/external/linux-kselftest/tools/testing/selftests/kvm/include/
Dkvm_util.h108 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa);
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddirty_log_test.c339 host_test_mem = addr_gpa2hva(vm, (vm_paddr_t)guest_test_phys_mem); in run_test()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util.c1028 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa) in addr_gpa2hva() function
1617 return addr_gpa2hva(vm, addr_gva2gpa(vm, gva)); in addr_gva2hva()