Lines Matching defs:gpa
844 uint64_t gpa, uint64_t size, void *hva)
849 .guest_phys_addr = gpa,
858 uint64_t gpa, uint64_t size, void *hva)
860 int ret = __vm_set_user_memory_region(vm, slot, flags, gpa, size, hva);
871 uint64_t gpa, uint64_t size, void *hva,
877 .guest_phys_addr = gpa,
890 uint64_t gpa, uint64_t size, void *hva,
893 int ret = __vm_set_user_memory_region2(vm, slot, flags, gpa, size, hva,
1164 * Change the gpa of a memory region.
1211 uint64_t gpa, len;
1215 for (gpa = base; gpa < end; gpa += len) {
1218 region = userspace_mem_region_find(vm, gpa, gpa);
1220 "Private memory region not found for GPA 0x%lx", gpa);
1222 offset = gpa - region->region.guest_phys_addr;
1224 len = min_t(uint64_t, end - gpa, region->region.memory_size - offset);
1228 punch_hole ? "punch hole" : "allocate", gpa, len,
1531 * gpa - VM physical address
1539 * by gpa, within the VM given by vm. When found, the host virtual
1541 * A TEST_ASSERT failure occurs if no region containing gpa exists.
1543 void *addr_gpa2hva(struct kvm_vm *vm, vm_paddr_t gpa)
1547 gpa = vm_untag_gpa(vm, gpa);
1549 region = userspace_mem_region_find(vm, gpa, gpa);
1551 TEST_FAIL("No vm physical memory at 0x%lx", gpa);
1556 + (gpa - region->region.guest_phys_addr));
1605 * gpa - VM physical address
1619 void *addr_gpa2alias(struct kvm_vm *vm, vm_paddr_t gpa)
1624 region = userspace_mem_region_find(vm, gpa, gpa);
1631 offset = gpa - region->region.guest_phys_addr;