| /freebsd-13-stable/sys/kern/ |
| HD | subr_vmem.c | 64 #include <vm/uma.h> 65 #include <vm/vm.h> 66 #include <vm/pmap.h> 67 #include <vm/vm_map.h> 68 #include <vm/vm_object.h> 69 #include <vm/vm_kern.h> 70 #include <vm/vm_extern.h> 71 #include <vm/vm_param.h> 72 #include <vm/vm_page.h> 73 #include <vm/vm_pageout.h> [all …]
|
| /freebsd-13-stable/sys/amd64/vmm/ |
| HD | vmm.c | 48 #include <vm/vm.h> 49 #include <vm/vm_param.h> 50 #include <vm/vm_extern.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_pager.h> 56 #include <vm/vm_kern.h> 57 #include <vm/vnode_pager.h> [all …]
|
| HD | 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 …]
|
| HD | vmm_dev.c | 47 #include <vm/vm.h> 48 #include <vm/pmap.h> 49 #include <vm/vm_map.h> 50 #include <vm/vm_object.h> 89 struct vm *vm; /* vm instance cookie */ member 136 panic("vcpu %s(%d) has invalid state %d", vm_name(sc->vm), in vcpu_unlock_one() 150 vm_slock_vcpus(sc->vm); in vcpu_lock_all() 151 maxcpus = vm_get_maxcpus(sc->vm); in vcpu_lock_all() 153 vcpu = vm_vcpu(sc->vm, i); in vcpu_lock_all() 163 vcpu = vm_vcpu(sc->vm, j); in vcpu_lock_all() [all …]
|
| /freebsd-13-stable/contrib/bc/src/ |
| HD | 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 …]
|
| HD | 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 …]
|
| HD | 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 …]
|
| HD | read.c | 54 #include <vm.h> 146 bc_file_puts(&vm->fout, bc_flush_none, prompt); in bc_read_chars() 147 bc_file_flush(&vm->fout, bc_flush_none); in bc_read_chars() 151 if (bc_read_buf(vec, vm->buf, &vm->buf_len)) in bc_read_chars() 165 r = read(STDIN_FILENO, vm->buf + vm->buf_len, in bc_read_chars() 166 BC_VM_STDIN_BUF_SIZE - vm->buf_len); in bc_read_chars() 178 if (vm->status == (sig_atomic_t) BC_STATUS_QUIT) BC_JMP; in bc_read_chars() 180 assert(vm->sig != 0); in bc_read_chars() 182 sig = (int) vm->sig; in bc_read_chars() 185 vm->sig = 0; in bc_read_chars() [all …]
|
| /freebsd-13-stable/sys/amd64/include/ |
| HD | vmm.h | 120 * The VM name has to fit into the pathname length constraints of devfs, 128 * image that is attached to the VM. A separator character gets added to 131 * The effective length of a VM name is 229 bytes for FreeBSD 13 and 37 145 struct vm; 168 typedef void * (*vmi_init_func_t)(struct vm *vm, struct pmap *pmap); 193 vmi_init_func_t init; /* vm-specific initialization */ 219 int vm_create(const char *name, struct vm **retvm); 220 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); 221 void vm_disable_vcpu_creation(struct vm *vm); 222 void vm_slock_vcpus(struct vm *vm); [all …]
|
| /freebsd-13-stable/lib/libkvm/ |
| HD | kvm_powerpc.c | 95 struct vmstate *vm; in powerpc_maphdrs() local 98 vm = kd->vmst; in powerpc_maphdrs() 100 vm->mapsz = sizeof(*vm->eh) + sizeof(struct kerneldumpheader); in powerpc_maphdrs() 101 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 102 if (vm->map == MAP_FAILED) { in powerpc_maphdrs() 106 vm->dmphdrsz = 0; in powerpc_maphdrs() 107 vm->eh = vm->map; in powerpc_maphdrs() 108 if (!valid_elf_header(vm->eh)) { in powerpc_maphdrs() 115 vm->dmphdrsz = dump_header_size(vm->map); in powerpc_maphdrs() 116 if (vm->dmphdrsz == 0) in powerpc_maphdrs() [all …]
|
| HD | kvm_powerpc64.c | 97 struct vmstate *vm; in powerpc_maphdrs() local 100 vm = kd->vmst; in powerpc_maphdrs() 102 vm->mapsz = sizeof(*vm->eh) + sizeof(struct kerneldumpheader); in powerpc_maphdrs() 103 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs() 104 if (vm->map == MAP_FAILED) { in powerpc_maphdrs() 108 vm->dmphdrsz = 0; in powerpc_maphdrs() 109 vm->eh = vm->map; in powerpc_maphdrs() 110 if (!valid_elf_header(kd, vm->eh)) { in powerpc_maphdrs() 117 vm->dmphdrsz = dump_header_size(vm->map); in powerpc_maphdrs() 118 if (vm->dmphdrsz == 0) in powerpc_maphdrs() [all …]
|
| HD | 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 …]
|
| HD | kvm_arm.c | 68 struct vmstate *vm = kd->vmst; in _kvm_pa2off() local 72 p = vm->phdr; in _kvm_pa2off() 73 n = vm->phnum; in _kvm_pa2off() 88 struct vmstate *vm = kd->vmst; in _arm_freevtop() local 90 free(vm->phdr); in _arm_freevtop() 91 free(vm); in _arm_freevtop() 106 struct vmstate *vm; in _arm_initvtop() local 119 vm = _kvm_malloc(kd, sizeof(*vm)); in _arm_initvtop() 120 if (vm == NULL) { in _arm_initvtop() 121 _kvm_err(kd, kd->program, "cannot allocate vm"); in _arm_initvtop() [all …]
|
| /freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/VE/ |
| HD | 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 …]
|
| HD | 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-13-stable/sys/amd64/vmm/io/ |
| HD | 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);
|
| HD | 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); 55 int ppt_assign_device(struct vm *vm, int bus, int slot, int func); 56 int ppt_unassign_device(struct vm *vm, int bus, int slot, int func);
|
| HD | ppt.c | 85 struct vm *vm; /* owner of this device */ member 176 if (ppt->vm != NULL) in ppt_detach() 199 ppt_find(struct vm *vm, int bus, int slot, int func, struct pptdev **pptp) in ppt_find() argument 216 if (ppt->vm != vm) /* Make sure we own this device */ in ppt_find() 223 ppt_unmap_all_mmio(struct vm *vm, struct pptdev *ppt) in ppt_unmap_all_mmio() argument 232 (void)vm_unmap_mmio(vm, seg->gpa, seg->len); in ppt_unmap_all_mmio() 332 ppt_assigned_devices(struct vm *vm) in ppt_assigned_devices() argument 339 if (ppt->vm == vm) in ppt_assigned_devices() 346 ppt_is_mmio(struct vm *vm, vm_paddr_t gpa) in ppt_is_mmio() argument 353 if (ppt->vm != vm) in ppt_is_mmio() [all …]
|
| HD | 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,
|
| HD | vrtc.c | 76 struct vm *vm; member 287 struct vm *vm = vrtc->vm; in rtc_to_secs() local 299 VM_CTR2(vm, "Invalid RTC sec %#x/%d", rtc->sec, ct.sec); in rtc_to_secs() 305 VM_CTR2(vm, "Invalid RTC min %#x/%d", rtc->min, ct.min); in rtc_to_secs() 335 VM_CTR2(vm, "Invalid RTC 12-hour format %#x/%d", in rtc_to_secs() 342 VM_CTR2(vm, "Invalid RTC hour %#x/%d", rtc->hour, ct.hour); in rtc_to_secs() 356 VM_CTR2(vm, "Invalid RTC mday %#x/%d", rtc->day_of_month, in rtc_to_secs() 363 VM_CTR2(vm, "Invalid RTC month %#x/%d", rtc->month, ct.mon); in rtc_to_secs() 369 VM_CTR2(vm, "Invalid RTC year %#x/%d", rtc->year, year); in rtc_to_secs() 376 VM_CTR2(vm, "Invalid RTC century %#x/%d", rtc->century, in rtc_to_secs() [all …]
|
| HD | vioapic.h | 39 struct vioapic *vioapic_init(struct vm *vm); 42 int vioapic_assert_irq(struct vm *vm, int irq); 43 int vioapic_deassert_irq(struct vm *vm, int irq); 44 int vioapic_pulse_irq(struct vm *vm, int irq); 51 int vioapic_pincount(struct vm *vm); 52 void vioapic_process_eoi(struct vm *vm, int vector);
|
| /freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmap/ |
| HD | mmap_sync_001_pos.ksh | 28 log_must eval "echo $saved_vm_dirty_expire_centisecs > /proc/sys/vm/dirty_expire_centisecs" 29 log_must eval "echo $saved_vm_dirty_background_ratio > /proc/sys/vm/dirty_background_ratio" 30 log_must eval "echo $saved_vm_dirty_writeback_centisecs > /proc/sys/vm/dirty_writeback_centisecs" 34 if [ $(</proc/sys/vm/dirty_expire_centisecs) -eq 1 ]; then 35 log_must eval "echo 3000 > /proc/sys/vm/dirty_expire_centisecs" 38 if [ $(</proc/sys/vm/dirty_background_ratio) -eq 0 ]; then 39 log_must eval "echo 10 > /proc/sys/vm/dirty_background_ratio" 42 if [ $(</proc/sys/vm/dirty_writeback_centisecs) -eq 1 ]; then 43 log_must eval "echo 500 > /proc/sys/vm/dirty_writeback_centisecs" 48 log_unsupported "Only supported on Linux, requires /proc/sys/vm/ tunables" [all …]
|
| /freebsd-13-stable/contrib/bc/include/ |
| HD | status.h | 679 #define BC_SIG_EXC(vm) \ argument 680 BC_UNLIKELY((vm)->status != (sig_atomic_t) BC_STATUS_SUCCESS || (vm)->sig) 683 #define BC_NO_SIG_EXC(vm) \ argument 684 BC_LIKELY((vm)->status == (sig_atomic_t) BC_STATUS_SUCCESS && !(vm)->sig) 687 #define BC_SIG_INTERRUPT(vm) \ argument 688 BC_UNLIKELY((vm)->sig != 0 && (vm)->sig != SIGWINCH) 690 #define BC_SIG_INTERRUPT(vm) BC_UNLIKELY((vm)->sig != 0) argument 702 assert(vm->sig_lock); \ 713 assert(vm->sig_lock == 0); \ 738 vm->sig_lock = 1; \ [all …]
|
| /freebsd-13-stable/tools/tools/sysdoc/ |
| HD | tunables.mdoc | 2186 vm.disable_swapspace_pageouts 2189 vm.dmmax 2192 vm.kvm_free 2195 vm.kvm_size 2198 vm.loadavg 2205 vm.max_launder 2208 vm.nswapdev 2215 vm.pageout_full_stats_interval 2218 vm.pageout_lock_miss 2221 vm.pageout_stats_free_max [all …]
|
| /freebsd-13-stable/usr.bin/systat/ |
| HD | vmstat.c | 51 #include <vm/vm_param.h> 271 GETSYSCTL("vm.kmem_size", kmem_size); in initkre() 272 GETSYSCTL("vm.stats.vm.v_page_count", v_page_count); in initkre() 746 GETSYSCTL("vm.stats.sys.v_swtch", ls->v_swtch); in getinfo() 747 GETSYSCTL("vm.stats.sys.v_trap", ls->v_trap); in getinfo() 748 GETSYSCTL("vm.stats.sys.v_syscall", ls->v_syscall); in getinfo() 749 GETSYSCTL("vm.stats.sys.v_intr", ls->v_intr); in getinfo() 750 GETSYSCTL("vm.stats.sys.v_soft", ls->v_soft); in getinfo() 751 GETSYSCTL("vm.stats.vm.v_vm_faults", ls->v_vm_faults); in getinfo() 752 GETSYSCTL("vm.stats.vm.v_io_faults", ls->v_io_faults); in getinfo() [all …]
|