Searched refs:gpa (Results 1 – 4 of 4) sorted by relevance
/tools/testing/selftests/kvm/lib/aarch64/ |
D | ucall.c | 12 static bool ucall_mmio_init(struct kvm_vm *vm, vm_paddr_t gpa) in ucall_mmio_init() argument 14 if (kvm_userspace_memory_region_find(vm, gpa, gpa + 1)) in ucall_mmio_init() 17 virt_pg_map(vm, gpa, gpa, 0); in ucall_mmio_init() 19 ucall_exit_mmio_addr = (vm_vaddr_t *)gpa; in ucall_mmio_init() 27 vm_paddr_t gpa, start, end, step, offset; in ucall_init() local 32 gpa = (vm_paddr_t)arg; in ucall_init() 33 ret = ucall_mmio_init(vm, gpa); in ucall_init() 34 TEST_ASSERT(ret, "Can't set ucall mmio address to %lx", gpa); in ucall_init()
|
/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 70 void virt_pg_map(struct kvm_vm *vm, uint64_t gva, uint64_t gpa, in virt_pg_map() argument 84 TEST_ASSERT((gpa % vm->page_size) == 0, in virt_pg_map() 88 TEST_ASSERT((gpa >> vm->page_shift) <= vm->max_gfn, in virt_pg_map() 106 "WARNING: PTE for gpa=0x%"PRIx64" already set!\n", gpa); in virt_pg_map() 107 entry[idx] = gpa; in virt_pg_map()
|
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1028 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa) in addr_gpa2hva() argument 1033 if ((gpa >= region->region.guest_phys_addr) in addr_gpa2hva() 1034 && (gpa <= (region->region.guest_phys_addr in addr_gpa2hva() 1037 + (gpa - region->region.guest_phys_addr)); in addr_gpa2hva() 1040 TEST_ASSERT(false, "No vm physical memory at 0x%lx", gpa); in addr_gpa2hva()
|
/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 108 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa);
|