Lines Matching +full:gpa +full:- +full:0

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
40 * API version for out-of-tree consumers like grub-bhyve for making compile
58 VM_MMAP_SPARSE, /* mappings created on-demand */
64 #define VM_MEM_F_INCORE 0x01 /* include guest memory in core file */
65 #define VM_MEM_F_WIRED 0x02 /* guest memory is wired */
69 * - vm_setup_memory() uses VM_SYSMEM for the system memory segment.
70 * - the remaining identifiers can be used to create devmem segments.
84 * Returns 0 on success and non-zero otherwise.
91 * that starts at an address >= *gpa.
93 * Returns 0 if the next address range was found and non-zero otherwise.
95 int vm_mmap_getnext(struct vmctx *ctx, vm_paddr_t *gpa, int *segid,
111 * at [gpa,gpa+len) with protection 'prot'.
113 int vm_mmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, int segid,
116 int vm_munmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, size_t len);
120 #define VMMAPI_OPEN_CREATE 0x01 /* create if the VM does not exist */
121 #define VMMAPI_OPEN_REINIT 0x02 /* reinitialize the VM if it exists */
132 /* inverse operation to vm_map_gpa - extract guest address from host pointer */
135 int vm_get_gpa_pmap(struct vmctx *, uint64_t gpa, uint64_t *pte, int *num);
137 uint64_t gla, int prot, uint64_t *gpa, int *fault);
141 uint64_t *gpa, int *fault);
197 vm_paddr_t gpa, bool write, int size, uint64_t *value);
208 vm_paddr_t gpa, size_t len, vm_paddr_t hpa);
210 vm_paddr_t gpa, size_t len);
222 * Return a pointer to the statistics buffer. Note that this is not MT-safe.
235 * Translate the GLA range [gla,gla+len) into GPA segments in 'iov'.
236 * The 'iovcnt' should be big enough to accommodate all GPA segments.
239 * 0 0 Success
240 * 0 1 An exception was injected into the guest