| /freebsd/sys/kern/ |
| H A D | subr_vmem.c | 67 #include <vm/uma.h> 68 #include <vm/vm.h> 69 #include <vm/pmap.h> 70 #include <vm/vm_map.h> 71 #include <vm/vm_object.h> 72 #include <vm/vm_kern.h> 73 #include <vm/vm_extern.h> 74 #include <vm/vm_param.h> 75 #include <vm/vm_page.h> 76 #include <vm/vm_pageout.h> [all …]
|
| /freebsd/sys/riscv/vmm/ |
| H A D | vmm.c | 50 #include <vm/vm.h> 51 #include <vm/vm_object.h> 52 #include <vm/vm_page.h> 53 #include <vm/pmap.h> 54 #include <vm/vm_map.h> 55 #include <vm/vm_extern.h> 56 #include <vm/vm_param.h> 64 #include <machine/vm.h> 89 struct vm *vm; /* (o) */ member 110 * (o) initialized the first time the VM is created [all …]
|
| /freebsd/sys/arm64/vmm/ |
| H A D | vmm.c | 45 #include <vm/vm.h> 46 #include <vm/vm_object.h> 47 #include <vm/vm_page.h> 48 #include <vm/pmap.h> 49 #include <vm/vm_map.h> 50 #include <vm/vm_extern.h> 51 #include <vm/vm_param.h> 58 #include <machine/vm.h> 84 struct vm *vm; /* (o) */ member 114 * (o) initialized the first time the VM is created [all …]
|
| /freebsd/contrib/bc/src/ |
| H A D | vm.c | 63 #include <vm.h> 78 BcVm* vm = &vm_data; variable 93 BcVm* vm = bcl_getspecific(); local 96 assert(BC_SIG_EXC(vm)); 101 bc_file_puts(&vm->ferr, bc_flush_none, "Longjmp: "); 102 bc_file_puts(&vm->ferr, bc_flush_none, f); 103 bc_file_putchar(&vm->ferr, bc_flush_none, '\n'); 104 bc_file_flush(&vm->ferr, bc_flush_none); 108 assert(vm->jmp_bufs.len - (size_t) vm->sig_pop); 111 if (vm->jmp_bufs.len == 0) abort(); [all …]
|
| H A D | library.c | 46 #include <vm.h> 119 * @param vm The @a BcVm to set as the thread data. 123 bcl_setspecific(BcVm* vm) in bcl_setspecific() argument 131 r = pthread_setspecific(tls_real, vm); in bcl_setspecific() 140 r = TlsSetValue(tls_real, vm); in bcl_setspecific() 151 BcVm* vm; in bcl_getspecific() local 155 vm = pthread_getspecific(tls_real); in bcl_getspecific() 159 vm = TlsGetValue(tls_real); in bcl_getspecific() 163 return vm; in bcl_getspecific() 170 BcVm* vm; in bcl_init() local [all …]
|
| H A D | args.c | 51 #include <vm.h> 62 if (vm->exprs.v == NULL) in bc_args_exprs() 64 bc_vec_init(&vm->exprs, sizeof(uchar), BC_DTOR_NONE); in bc_args_exprs() 67 bc_vec_concat(&vm->exprs, str); in bc_args_exprs() 68 bc_vec_concat(&vm->exprs, "\n"); in bc_args_exprs() 83 vm->file = file; in bc_args_file() 140 vm->redefined_kws[i] = true; in bc_args_redefine() 175 vm->flags |= BC_FLAG_DIGIT_CLAMP; in bc_args() 181 vm->flags &= ~BC_FLAG_DIGIT_CLAMP; in bc_args() 188 if (vm->no_exprs) in bc_args() [all …]
|
| /freebsd/sys/amd64/vmm/ |
| H A D | vmm.c | 46 #include <vm/vm.h> 47 #include <vm/vm_param.h> 48 #include <vm/vm_extern.h> 49 #include <vm/vm_object.h> 50 #include <vm/vm_page.h> 51 #include <vm/pmap.h> 52 #include <vm/vm_map.h> 53 #include <vm/vm_pager.h> 54 #include <vm/vm_kern.h> 55 #include <vm/vnode_pager.h> [all …]
|
| /freebsd/sys/dev/vmm/ |
| H A D | vmm_mem.c | 16 #include <vm/vm.h> 17 #include <vm/vm_param.h> 18 #include <vm/vm_extern.h> 19 #include <vm/pmap.h> 20 #include <vm/vm_map.h> 21 #include <vm/vm_object.h> 22 #include <vm/vm_page.h> 27 static void vm_free_memmap(struct vm *vm, int ident); 50 vm_memseg_sysmem(struct vm *vm, int ident) in vm_memseg_sysmem() argument 54 mem = vm_mem(vm); in vm_memseg_sysmem() [all …]
|
| H A D | vmm_mem.h | 37 struct vm; 64 void vm_mem_cleanup(struct vm *vm); 65 void vm_mem_destroy(struct vm *vm); 67 struct vmspace *vm_vmspace(struct vm *vm); 72 void vm_slock_memsegs(struct vm *vm); 73 void vm_xlock_memsegs(struct vm *vm); 74 void vm_unlock_memsegs(struct vm *vm); 75 void vm_assert_memseg_locked(struct vm *vm); 76 void vm_assert_memseg_xlocked(struct vm *vm); 77 int vm_mmap_memseg(struct vm *vm, vm_paddr_t gpa, int segid, vm_ooffset_t off, [all …]
|
| H A D | vmm_ktr.h | 39 #define VCPU_CTR0(vm, vcpuid, format) \ argument 40 CTR2(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid)) 42 #define VCPU_CTR1(vm, vcpuid, format, p1) \ argument 43 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1)) 45 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \ argument 46 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2)) 48 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \ argument 49 CTR5(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2), (p3)) 51 #define VCPU_CTR4(vm, vcpuid, format, p1, p2, p3, p4) \ argument 52 CTR6(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), \ [all …]
|
| /freebsd/sys/dev/hwt/ |
| H A D | hwt_vm.c | 43 #include <vm/vm.h> 44 #include <vm/pmap.h> 45 #include <vm/vm_extern.h> 46 #include <vm/vm_param.h> 47 #include <vm/vm_kern.h> 48 #include <vm/vm_page.h> 49 #include <vm/vm_object.h> 50 #include <vm/vm_pager.h> 51 #include <vm/vm_pageout.h> 52 #include <vm/vm_phys.h> [all …]
|
| /freebsd/sys/riscv/include/ |
| H A D | vmm.h | 39 #include <vm/vm.h> 40 #include <vm/pmap.h> 108 struct vm; 128 DECLARE_VMMOPS_FUNC(void *, init, (struct vm *vm, struct pmap *pmap)); 146 int vm_create(const char *name, struct vm **retvm); 147 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); 148 void vm_disable_vcpu_creation(struct vm *vm); 149 void vm_lock_vcpus(struct vm *vm); 150 void vm_unlock_vcpus(struct vm *vm); 151 void vm_destroy(struct vm *vm); [all …]
|
| /freebsd/sys/arm64/include/ |
| H A D | vmm.h | 32 #include <vm/vm.h> 33 #include <vm/pmap.h> 110 struct vm; 130 DECLARE_VMMOPS_FUNC(void *, init, (struct vm *vm, struct pmap *pmap)); 156 int vm_create(const char *name, struct vm **retvm); 157 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); 158 void vm_disable_vcpu_creation(struct vm *vm); 159 void vm_lock_vcpus(struct vm *vm); 160 void vm_unlock_vcpus(struct vm *vm); 161 void vm_destroy(struct vm *vm); [all …]
|
| /freebsd/lib/libkvm/ |
| H A D | kvm_powerpc.c | 94 struct vmstate *vm; in powerpc_maphdrs() local 97 vm = kd->vmst; in powerpc_maphdrs() 99 vm->mapsz = sizeof(*vm->eh) + sizeof(struct kerneldumpheader); in powerpc_maphdrs() 100 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 101 if (vm->map == MAP_FAILED) { in powerpc_maphdrs() 105 vm->dmphdrsz = 0; in powerpc_maphdrs() 106 vm->eh = vm->map; in powerpc_maphdrs() 107 if (!valid_elf_header(vm->eh)) { in powerpc_maphdrs() 114 vm->dmphdrsz = dump_header_size(vm->map); in powerpc_maphdrs() 115 if (vm->dmphdrsz == 0) in powerpc_maphdrs() [all …]
|
| H A D | kvm_powerpc64.c | 96 struct vmstate *vm; in powerpc_maphdrs() local 99 vm = kd->vmst; in powerpc_maphdrs() 101 vm->mapsz = sizeof(*vm->eh) + sizeof(struct kerneldumpheader); in powerpc_maphdrs() 102 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 103 if (vm->map == MAP_FAILED) { in powerpc_maphdrs() 107 vm->dmphdrsz = 0; in powerpc_maphdrs() 108 vm->eh = vm->map; in powerpc_maphdrs() 109 if (!valid_elf_header(kd, vm->eh)) { in powerpc_maphdrs() 116 vm->dmphdrsz = dump_header_size(vm->map); in powerpc_maphdrs() 117 if (vm->dmphdrsz == 0) in powerpc_maphdrs() [all …]
|
| H A D | kvm_minidump_amd64.c | 39 #include <vm/vm.h> 50 #define VM_IS_V1(vm) (vm->hdr.version == 1) argument 51 #define VA_OFF(vm, va) \ argument 52 (VM_IS_V1(vm) ? ((va) & (AMD64_PAGE_SIZE - 1)) : ((va) & AMD64_PAGE_MASK)) 114 struct vmstate *vm = kd->vmst; in _amd64_minidump_freevtop() local 116 free(vm); in _amd64_minidump_freevtop() 128 _kvm_err(kd, kd->program, "cannot allocate vm"); in _amd64_minidump_initvtop() 186 struct vmstate *vm; in _amd64_minidump_vatop_v1() local 193 vm = kd->vmst; in _amd64_minidump_vatop_v1() 196 if (va >= vm->hdr.kernbase) { in _amd64_minidump_vatop_v1() [all …]
|
| /freebsd/sys/amd64/include/ |
| H A D | vmm.h | 126 struct vm; 155 DECLARE_VMMOPS_FUNC(void *, init, (struct vm *vm, struct pmap *pmap)); 185 vmmops_init_t init; /* vm-specific initialization */ 209 int vm_create(const char *name, struct vm **retvm); 210 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); 211 void vm_disable_vcpu_creation(struct vm *vm); 212 void vm_lock_vcpus(struct vm *vm); 213 void vm_unlock_vcpus(struct vm *vm); 214 void vm_destroy(struct vm *vm); 215 int vm_reinit(struct vm *vm); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VEInstrIntrinsicVL.gen.td | 67 …ssml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTrrvml i64:$sy, i64:$sz, v256f64:$vx,… 68 …ml v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTirvml (LO7 $I), i64:$sz, v256f64:$vx,… 71 …sml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCrrvml i64:$sy, i64:$sz, v256f64:$vx… 72 …l v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCirvml (LO7 $I), i64:$sz, v256f64:$vx… 75 …sml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTOTrrvml i64:$sy, i64:$sz, v256f64:$vx… 76 …l v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTOTirvml (LO7 $I), i64:$sz, v256f64:$vx… 79 …ml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCOTrrvml i64:$sy, i64:$sz, v256f64:$v… 80 … v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTNCOTirvml (LO7 $I), i64:$sz, v256f64:$v… 83 …sml v256f64:$vx, i64:$sy, i64:$sz, v256i1:$vm, i32:$vl), (VSTUrrvml i64:$sy, i64:$sz, v256f64:$vx,… 84 …ml v256f64:$vx, simm7:$I, i64:$sz, v256i1:$vm, i32:$vl), (VSTUirvml (LO7 $I), i64:$sz, v256f64:$vx… [all …]
|
| H A D | VEInstrVec.td | 5 // Pseudo instructions for VM/VM512 spill/restore 17 (outs VM:$vmx), (ins MEMrii:$addr), 25 (outs), (ins MEMrii:$addr, VM:$vmx), 63 (ins CCOp:$cf, V64:$vz, VM512:$vm, I32:$vl), 64 "# pseudo-vfmk.w.$cf $vmx, $vz, $vm">; 69 (ins CCOp:$cf, V64:$vz, VM512:$vm, I32:$vl), 70 "# pseudo-vfmk.s.$cf $vmx, $vz, $vm">; 195 defm m : VSTbm<opcStr, " $vx, $sy, $sz, $m", opc, !con(dag_in, (ins VM:$m))>; 258 defm m : VGTlm<opcStr, argStr#", $m", opc, RC, !con(dag_in, (ins VM:$m))>; 310 defm m : VSCbm<opcStr, argStr#", $m", opc, !con(dag_in, (ins VM:$m))>; [all …]
|
| /freebsd/sys/amd64/vmm/io/ |
| H A D | vatpic.h | 39 struct vatpic *vatpic_init(struct vm *vm); 42 int vatpic_master_handler(struct vm *vm, bool in, int port, int bytes, 44 int vatpic_slave_handler(struct vm *vm, bool in, int port, int bytes, 46 int vatpic_elc_handler(struct vm *vm, bool in, int port, int bytes, 49 int vatpic_assert_irq(struct vm *vm, int irq); 50 int vatpic_deassert_irq(struct vm *vm, int irq); 51 int vatpic_pulse_irq(struct vm *vm, int irq); 52 int vatpic_set_irq_trigger(struct vm *vm, int irq, enum vm_intr_trigger trigger); 54 void vatpic_pending_intr(struct vm *vm, int *vecptr); 55 void vatpic_intr_accepted(struct vm *vm, int vector);
|
| H A D | ppt.h | 32 int ppt_unassign_all(struct vm *vm); 33 int ppt_map_mmio(struct vm *vm, int bus, int slot, int func, 35 int ppt_unmap_mmio(struct vm *vm, int bus, int slot, int func, 37 int ppt_setup_msi(struct vm *vm, int bus, int slot, int func, 39 int ppt_setup_msix(struct vm *vm, int bus, int slot, int func, 41 int ppt_disable_msix(struct vm *vm, int bus, int slot, int func); 42 int ppt_assigned_devices(struct vm *vm); 43 bool ppt_is_mmio(struct vm *vm, vm_paddr_t gpa); 49 int ppt_assign_device(struct vm *vm, int bus, int slot, int func); 50 int ppt_unassign_device(struct vm *vm, int bus, int slot, int func);
|
| H A D | ppt.c | 84 struct vm *vm; /* owner of this device */ member 185 if (ppt->vm != NULL) in ppt_detach() 213 ppt_find(struct vm *vm, int bus, int slot, int func, struct pptdev **pptp) in ppt_find() argument 230 if (ppt->vm != vm) /* Make sure we own this device */ in ppt_find() 237 ppt_unmap_all_mmio(struct vm *vm, struct pptdev *ppt) in ppt_unmap_all_mmio() argument 246 (void)vm_unmap_mmio(vm, seg->gpa, seg->len); in ppt_unmap_all_mmio() 339 ppt_assigned_devices(struct vm *vm) in ppt_assigned_devices() argument 346 if (ppt->vm == vm) in ppt_assigned_devices() 353 ppt_is_mmio(struct vm *vm, vm_paddr_t gpa) in ppt_is_mmio() argument 360 if (ppt->vm != vm) in ppt_is_mmio() [all …]
|
| H A D | vrtc.h | 37 struct vrtc *vrtc_init(struct vm *vm); 41 time_t vrtc_get_time(struct vm *vm); 42 int vrtc_set_time(struct vm *vm, time_t secs); 43 int vrtc_nvram_write(struct vm *vm, int offset, uint8_t value); 44 int vrtc_nvram_read(struct vm *vm, int offset, uint8_t *retval); 46 int vrtc_addr_handler(struct vm *vm, bool in, int port, int bytes, 48 int vrtc_data_handler(struct vm *vm, bool in, int port, int bytes,
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmap/ |
| H A D | mmap_sync_001_pos.ksh | 29 log_must eval "echo $saved_vm_dirty_expire_centisecs > /proc/sys/vm/dirty_expire_centisecs" 30 log_must eval "echo $saved_vm_dirty_background_ratio > /proc/sys/vm/dirty_background_ratio" 31 log_must eval "echo $saved_vm_dirty_writeback_centisecs > /proc/sys/vm/dirty_writeback_centisecs" 35 if [ $(</proc/sys/vm/dirty_expire_centisecs) -eq 1 ]; then 36 log_must eval "echo 3000 > /proc/sys/vm/dirty_expire_centisecs" 39 if [ $(</proc/sys/vm/dirty_background_ratio) -eq 0 ]; then 40 log_must eval "echo 10 > /proc/sys/vm/dirty_background_ratio" 43 if [ $(</proc/sys/vm/dirty_writeback_centisecs) -eq 1 ]; then 44 log_must eval "echo 500 > /proc/sys/vm/dirty_writeback_centisecs" 49 log_unsupported "Only supported on Linux, requires /proc/sys/vm/ tunables" [all …]
|
| /freebsd/sys/contrib/openzfs/.github/workflows/scripts/ |
| H A D | qemu-5-setup.sh | 44 # setup the testing vm's 49 echo "Creating disk for vm$i..." 50 DISK="/dev/zvol/zpool/vm$i" 52 sudo zfs clone zpool/openzfs@now zpool/vm$i-system 53 sudo zfs create -ps -b 64k -V 64g zpool/vm$i-tests 58 fqdn: vm$i 80 --name "vm$i" \ 111 # Save the VM's serial output (ttyS0) to /var/tmp/console.txt 112 # - ttyS0 on the VM corresponds to a local /dev/pty/N entry 115 mkdir -p $RESPATH/vm$i [all …]
|