Home
last modified time | relevance | path

Searched refs:vmspace (Results 1 – 25 of 70) sorted by relevance

123

/freebsd/sys/i386/linux/
H A Dimgact_linux.c61 struct vmspace *vmspace; in exec_linux_imgact() local
123 vmspace = imgp->proc->p_vmspace; in exec_linux_imgact()
138 error = vm_map_find(&vmspace->vm_map, NULL, 0, &vmaddr, in exec_linux_imgact()
157 error = vm_map_protect(&vmspace->vm_map, vmaddr, in exec_linux_imgact()
170 error = vm_mmap(&vmspace->vm_map, &vmaddr, in exec_linux_imgact()
185 error = vm_map_protect(&vmspace->vm_map, vmaddr + a_out->a_text, in exec_linux_imgact()
196 error = vm_map_find(&vmspace->vm_map, NULL, 0, &vmaddr, in exec_linux_imgact()
207 vmspace->vm_tsize = round_page(a_out->a_text) >> PAGE_SHIFT; in exec_linux_imgact()
208 vmspace->vm_dsize = round_page(a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_linux_imgact()
209 vmspace->vm_taddr = (caddr_t)(void *)(uintptr_t)virtual_offset; in exec_linux_imgact()
[all …]
/freebsd/sys/amd64/vmm/
H A Dvmm_mem.c56 vmm_mmio_alloc(struct vmspace *vmspace, vm_paddr_t gpa, size_t len, in vmm_mmio_alloc() argument
83 error = vm_map_find(&vmspace->vm_map, obj, 0, &gpa, len, 0, in vmm_mmio_alloc()
108 vmm_mmio_free(struct vmspace *vmspace, vm_paddr_t gpa, size_t len) in vmm_mmio_free() argument
111 vm_map_remove(&vmspace->vm_map, gpa, gpa + len); in vmm_mmio_free()
H A Dvmm_mem.h32 struct vmspace;
36 struct vm_object *vmm_mmio_alloc(struct vmspace *, vm_paddr_t gpa, size_t len,
38 void vmm_mmio_free(struct vmspace *, vm_paddr_t gpa, size_t size);
H A Dvmm.c185 struct vmspace *vmspace; /* (o) guest's address space */ member
249 DEFINE_VMMOPS_IFUNC(struct vmspace *, vmspace_alloc, (vm_offset_t min,
251 DEFINE_VMMOPS_IFUNC(void, vmspace_free, (struct vmspace *vmspace))
524 vm->cookie = vmmops_init(vm, vmspace_pmap(vm->vmspace)); in vm_init()
609 struct vmspace *vmspace; in vm_create() local
622 vmspace = vmmops_vmspace_alloc(0, VM_MAXUSER_ADDRESS_LA48); in vm_create()
623 if (vmspace == NULL) in vm_create()
628 vm->vmspace = vmspace; in vm_create()
725 vmmops_vmspace_free(vm->vmspace); in vm_cleanup()
726 vm->vmspace = NULL; in vm_cleanup()
[all …]
/freebsd/sys/vm/
H A Dvm_extern.h37 struct vmspace;
99 struct vmspace *, int);
113 struct vmspace *vmspace_alloc(vm_offset_t, vm_offset_t, pmap_pinit_t);
114 struct vmspace *vmspace_fork(struct vmspace *, vm_ooffset_t *);
118 struct vmspace *vmspace_acquire_ref(struct proc *);
119 void vmspace_free(struct vmspace *);
121 void vmspace_switch_aio(struct vmspace *);
H A Dvm_map.h288 struct vmspace { struct
311 vmspace_pmap(struct vmspace *vmspace) in vmspace_pmap() argument
313 return &vmspace->vm_pmap; in vmspace_pmap()
361 long vmspace_resident_count(struct vmspace *vmspace);
540 long vmspace_swap_count(struct vmspace *vmspace);
/freebsd/sys/amd64/vmm/amd/
H A Dnpt.c73 struct vmspace *
81 svm_npt_free(struct vmspace *vmspace) in svm_npt_free() argument
84 vmspace_free(vmspace); in svm_npt_free()
H A Dnpt.h33 struct vmspace *svm_npt_alloc(vm_offset_t min, vm_offset_t max);
34 void svm_npt_free(struct vmspace *vmspace);
/freebsd/sys/kern/
H A Dimgact_aout.c177 struct vmspace *vmspace; in exec_aout_imgact() local
295 vmspace = imgp->proc->p_vmspace; in exec_aout_imgact()
298 map = &vmspace->vm_map; in exec_aout_imgact()
342 vmspace->vm_tsize = a_out->a_text >> PAGE_SHIFT; in exec_aout_imgact()
343 vmspace->vm_dsize = (a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_aout_imgact()
344 vmspace->vm_taddr = (caddr_t) (uintptr_t) virtual_offset; in exec_aout_imgact()
345 vmspace->vm_daddr = (caddr_t) (uintptr_t) in exec_aout_imgact()
H A Dkern_exec.c122 struct mac *mac_p, struct vmspace *oldvmspace);
222 struct vmspace *oldvmspace; in sys_execve()
248 struct vmspace *oldvmspace; in sys_fexecve()
279 struct vmspace *oldvmspace; in sys___mac_execve()
298 pre_execve(struct thread *td, struct vmspace **oldvmspace) in pre_execve()
319 post_execve(struct thread *td, int error, struct vmspace *oldvmspace) in post_execve()
349 struct vmspace *oldvmspace) in kern_execve()
391 struct vmspace *oldvmspace) in do_execve()
1045 exec_cleanup(struct thread *td, struct vmspace *oldvmspace) in exec_cleanup()
1116 struct vmspace *vmspace; in exec_free_abi_mappings() local
[all …]
H A Dimgact_elf.c929 struct vmspace *vmspace; in __elfN() local
993 vmspace = imgp->proc->p_vmspace; in __elfN()
994 vmspace->vm_tsize = text_size >> PAGE_SHIFT; in __elfN()
995 vmspace->vm_taddr = (caddr_t)(uintptr_t)text_addr; in __elfN()
996 vmspace->vm_dsize = data_size >> PAGE_SHIFT; in __elfN()
997 vmspace->vm_daddr = (caddr_t)(uintptr_t)data_addr; in __elfN()
1104 struct vmspace *vmspace; in __CONCAT() local
1323 vmspace = imgp->proc->p_vmspace; in __CONCAT()
1324 map = &vmspace->vm_map; in __CONCAT()
1360 addr = round_page((vm_offset_t)vmspace->vm_daddr + lim_max(td, in __CONCAT()
[all …]
/freebsd/sys/amd64/vmm/intel/
H A Dept.h36 struct vmspace *ept_vmspace_alloc(vm_offset_t min, vm_offset_t max);
37 void ept_vmspace_free(struct vmspace *vmspace);
H A Dept.c179 struct vmspace *
187 ept_vmspace_free(struct vmspace *vmspace) in ept_vmspace_free() argument
190 vmspace_free(vmspace); in ept_vmspace_free()
/freebsd/sys/sys/
H A Dimgact.h102 struct vmspace;
115 void exec_cleanup(struct thread *td, struct vmspace *);
124 int pre_execve(struct thread *td, struct vmspace **oldvmspace);
125 void post_execve(struct thread *td, int error, struct vmspace *oldvmspace);
H A Dipc.h129 struct vmspace;
140 extern void (*shmexit_hook)(struct vmspace *);
H A Dshm.h151 struct vmspace;
160 void shmexit(struct vmspace *);
/freebsd/sys/powerpc/powerpc/
H A Delf_common.c35 struct vmspace *vmspace; in __elfN() local
60 vmspace = imgp->proc->p_vmspace; in __elfN()
87 vmspace->vm_shp_base + imgp->sysent->sv_timekeep_offset); in __elfN()
/freebsd/sys/riscv/vmm/
H A Dvmm.c144 struct vmspace *vmspace; /* (o) guest's address space */ member
305 vm->cookie = vmmops_init(vm, vmspace_pmap(vm->vmspace)); in vm_init()
382 struct vmspace *vmspace; in vm_create() local
394 vmspace = vmmops_vmspace_alloc(0, 1ul << 39); in vm_create()
395 if (vmspace == NULL) in vm_create()
400 vm->vmspace = vmspace; in vm_create()
482 vmmops_vmspace_free(vm->vmspace); in vm_cleanup()
483 vm->vmspace = NULL; in vm_cleanup()
685 error = vm_map_find(&vm->vmspace->vm_map, seg->object, first, &gpa, in vm_mmap_memseg()
693 error = vm_map_wire(&vm->vmspace->vm_map, gpa, gpa + len, in vm_mmap_memseg()
[all …]
H A Driscv.h118 DEFINE_VMMOPS_IFUNC(struct vmspace *, vmspace_alloc, (vm_offset_t min,
120 DEFINE_VMMOPS_IFUNC(void, vmspace_free, (struct vmspace *vmspace))
H A Dvmm_riscv.c247 struct vmspace *
255 vmmops_vmspace_free(struct vmspace *vmspace) in vmmops_vmspace_free() argument
258 pmap_remove_pages(vmspace_pmap(vmspace)); in vmmops_vmspace_free()
259 vmspace_free(vmspace); in vmmops_vmspace_free()
/freebsd/sys/compat/linux/
H A Dlinux_vdso.c158 struct vmspace *vmspace; in linux_map_vdso() local
165 vmspace = p->p_vmspace; in linux_map_vdso()
166 map = &vmspace->vm_map; in linux_map_vdso()
/freebsd/sys/arm64/vmm/
H A Dvmm.c149 struct vmspace *vmspace; /* (o) guest's address space */ member
409 vm->cookie = vmmops_init(vm, vmspace_pmap(vm->vmspace)); in vm_init()
487 struct vmspace *vmspace; in vm_create() local
499 vmspace = vmmops_vmspace_alloc(0, 1ul << 39); in vm_create()
500 if (vmspace == NULL) in vm_create()
505 vm->vmspace = vmspace; in vm_create()
560 pmap = vmspace_pmap(vm->vmspace); in vm_cleanup()
598 vmmops_vmspace_free(vm->vmspace); in vm_cleanup()
599 vm->vmspace = NULL; in vm_cleanup()
797 error = vm_map_find(&vm->vmspace->vm_map, seg->object, first, &gpa, in vm_mmap_memseg()
[all …]
H A Darm64.h151 DEFINE_VMMOPS_IFUNC(struct vmspace *, vmspace_alloc, (vm_offset_t min,
153 DEFINE_VMMOPS_IFUNC(void, vmspace_free, (struct vmspace *vmspace))
/freebsd/lib/libkvm/
H A Dkvm_proc.c114 struct vmspace vmspace; in kvm_proclist() local
321 (char *)&vmspace, sizeof(vmspace)); in kvm_proclist()
322 kp->ki_size = vmspace.vm_map.size; in kvm_proclist()
328 kp->ki_rssize = pmap_resident_count(&vmspace.vm_pmap); in kvm_proclist()
329 kp->ki_swrss = vmspace.vm_swrss; in kvm_proclist()
330 kp->ki_tsize = vmspace.vm_tsize; in kvm_proclist()
331 kp->ki_dsize = vmspace.vm_dsize; in kvm_proclist()
332 kp->ki_ssize = vmspace.vm_ssize; in kvm_proclist()
/freebsd/sys/amd64/include/
H A Dvmm.h159 struct vmspace;
187 typedef struct vmspace * (*vmi_vmspace_alloc)(vm_offset_t min, vm_offset_t max);
188 typedef void (*vmi_vmspace_free)(struct vmspace *vmspace);
402 struct vmspace *vm_get_vmspace(struct vm *vm);

123