| /src/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 …]
|
| /src/sys/riscv/vmm/ |
| H A D | vmm.c | 49 #include <vm/vm.h> 50 #include <vm/vm_object.h> 51 #include <vm/vm_page.h> 52 #include <vm/pmap.h> 53 #include <vm/vm_map.h> 54 #include <vm/vm_extern.h> 55 #include <vm/vm_param.h> 63 #include <machine/vm.h> 86 VMM_STAT(VMEXIT_COUNT, "total number of vm exits"); 104 vcpu_alloc(struct vm *vm, int vcpu_id) in vcpu_alloc() argument [all …]
|
| /src/sys/dev/vmm/ |
| H A D | vmm_vm.c | 33 struct vm *vm = vcpu->vm; in vm_rendezvous() local 36 mtx_assert(&vcpu->vm->rendezvous_mtx, MA_OWNED); in vm_rendezvous() 37 KASSERT(vcpu->vm->rendezvous_func != NULL, in vm_rendezvous() 41 CPU_AND(&vm->rendezvous_req_cpus, &vm->rendezvous_req_cpus, in vm_rendezvous() 42 &vm->active_cpus); in vm_rendezvous() 45 if (CPU_ISSET(vcpuid, &vm->rendezvous_req_cpus) && in vm_rendezvous() 46 !CPU_ISSET(vcpuid, &vm->rendezvous_done_cpus)) { in vm_rendezvous() 47 (*vm->rendezvous_func)(vcpu, vm->rendezvous_arg); in vm_rendezvous() 48 CPU_SET(vcpuid, &vm->rendezvous_done_cpus); in vm_rendezvous() 50 if (CPU_CMP(&vm->rendezvous_req_cpus, &vm->rendezvous_done_cpus) == 0) { in vm_rendezvous() [all …]
|
| 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> 28 static void vm_free_memmap(struct vm *vm, int ident); 51 vm_memseg_sysmem(struct vm *vm, int ident) in vm_memseg_sysmem() argument 55 mem = vm_mem(vm); in vm_memseg_sysmem() [all …]
|
| H A D | vmm_mem.h | 39 struct vm; 67 void vm_mem_cleanup(struct vm *vm); 68 void vm_mem_destroy(struct vm *vm); 70 struct vmspace *vm_vmspace(struct vm *vm); 75 void vm_slock_memsegs(struct vm *vm); 76 void vm_xlock_memsegs(struct vm *vm); 77 void vm_unlock_memsegs(struct vm *vm); 78 void vm_assert_memseg_locked(struct vm *vm); 79 void vm_assert_memseg_xlocked(struct vm *vm); 80 int vm_mmap_memseg(struct vm *vm, vm_paddr_t gpa, int segid, vm_ooffset_t off, [all …]
|
| H A D | vmm_vm.h | 41 struct vm *vm; /* (o) */ member 59 int vcpu_set_state_all(struct vm *vm, enum vcpu_state state); 71 static inline struct vm * 74 return (vcpu->vm); in vcpu_vm() 119 * (o) initialized the first time the VM is created 120 * (i) initialized when VM is created and when it is reinitialized 128 struct vm { struct 137 int suspend; /* (i) stop VM execution */ 158 int vm_create(const char *name, struct vm **retvm); argument 159 struct vcpu *vm_alloc_vcpu(struct vm *vm, int vcpuid); [all …]
|
| H A D | vmm_ktr.h | 41 #define VCPU_CTR0(vm, vcpuid, format) \ argument 42 CTR2(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid)) 44 #define VCPU_CTR1(vm, vcpuid, format, p1) \ argument 45 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1)) 47 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \ argument 48 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2)) 50 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \ argument 51 CTR5(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2), (p3)) 53 #define VCPU_CTR4(vm, vcpuid, format, p1, p2, p3, p4) \ argument 54 CTR6(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), \ [all …]
|
| /src/sys/arm64/vmm/ |
| H A D | vmm.c | 44 #include <vm/vm.h> 45 #include <vm/vm_object.h> 46 #include <vm/vm_page.h> 47 #include <vm/pmap.h> 48 #include <vm/vm_map.h> 49 #include <vm/vm_extern.h> 50 #include <vm/vm_param.h> 57 #include <machine/vm.h> 136 VMM_STAT(VMEXIT_COUNT, "total number of vm exits"); 190 vcpu_alloc(struct vm *vm, int vcpu_id) in vcpu_alloc() argument [all …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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 | 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,
|
| H A D | ppt.c | 92 struct vm *vm; /* owner of this device */ member 198 if (ppt->vm != NULL) { in ppt_detach() 228 ppt_find(struct vm *vm, int bus, int slot, int func, struct pptdev **pptp) in ppt_find() argument 247 if (ppt->vm != vm) /* Make sure we own this device */ in ppt_find() 254 ppt_unmap_all_mmio(struct vm *vm, struct pptdev *ppt) in ppt_unmap_all_mmio() argument 263 (void)vm_unmap_mmio(vm, seg->gpa, seg->len); in ppt_unmap_all_mmio() 356 ppt_assigned_devices(struct vm *vm) in ppt_assigned_devices() argument 363 if (ppt->vm == vm) in ppt_assigned_devices() 370 ppt_is_mmio(struct vm *vm, vm_paddr_t gpa) in ppt_is_mmio() argument 377 if (ppt->vm != vm) in ppt_is_mmio() [all …]
|
| /src/sys/contrib/openzfs/.github/workflows/scripts/ |
| H A D | qemu-8-summary.sh | 57 if [ -f vm$i/lustre-exitcode.txt ] ; then 58 rv=$(< vm$i/lustre-exitcode.txt) 60 vm="[92mvm$i[0m" 62 vm="[1;91mvm$i[0m" 65 file="vm$i/lustre.txt" 66 test -s "$file" && showfile_tail "$file" "$vm: Lustre build" 69 if [ -f vm$i/builtin-exitcode.txt ] ; then 70 rv=$(< vm$i/builtin-exitcode.txt) 72 vm="[92mvm$i[0m" 74 vm="[1;91mvm$i[0m" [all …]
|
| 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 88 --name "vm$i" \ 119 # Save the VM's serial output (ttyS0) to /var/tmp/console.txt 120 # - ttyS0 on the VM corresponds to a local /dev/pty/N entry 123 mkdir -p $RESPATH/vm$i [all …]
|
| /src/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 …]
|