/illumos-gate/usr/src/uts/intel/io/vmm/sys/ |
H A D | vmm_kernel.h | 140 void vm_destroy(struct vm *vm); 141 int vm_reinit(struct vm *vm, uint64_t); 142 uint16_t vm_get_maxcpus(struct vm *vm); 208 struct vhpet *vm_hpet(struct vm *vm); 230 cpuset_t vm_active_cpus(struct vm *vm); 231 cpuset_t vm_debug_cpus(struct vm *vm); 247 void *vm_iommu_domain(struct vm *vm); 298 struct vatpic *vm_atpic(struct vm *vm); 299 struct vatpit *vm_atpit(struct vm *vm); 300 struct vpmtmr *vm_pmtmr(struct vm *vm); [all …]
|
H A D | vmm_instruction_emul.h | 68 void vie_cs_info(const struct vie *vie, struct vm *vm, int vcpuid, 74 int vie_emulate_mmio(struct vie *vie, struct vm *vm, int vcpuid); 75 int vie_emulate_inout(struct vie *vie, struct vm *vm, int vcpuid); 76 int vie_emulate_other(struct vie *vie, struct vm *vm, int vcpuid); 83 int vie_fetch_instruction(struct vie *vie, struct vm *vm, int cpuid, 94 int vm_gla2gpa(struct vm *vm, int vcpuid, struct vm_guest_paging *paging, 101 int vm_gla2gpa_nofault(struct vm *vm, int vcpuid, 105 int vie_verify_gla(struct vie *vie, struct vm *vm, int cpuid, uint64_t gla); 118 int vie_decode_instruction(struct vie *vie, struct vm *vm, int cpuid, int csd);
|
/illumos-gate/usr/src/common/ficl/ |
H A D | primitives.c | 284 (void) ficlLtoa((c).i, vm->pad, vm->base); in ficlPrimitiveDot() 286 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveDot() 297 (void) ficlUltoa(u, vm->pad, vm->base); in ficlPrimitiveUDot() 299 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveUDot() 312 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveHexDot() 840 FICL_VM_ASSERT(vm, vm); in ficlPrimitiveInterpret() 1351 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveDotParen() 1400 ficlStackPushPointer(vm->dataStack, &vm->state); in ficlPrimitiveState() 2260 ficlStackPushPointer(vm->dataStack, vm->tib.text); in ficlPrimitiveSource() 2840 ficlStackPushPointer(vm->dataStack, vm->pad); in ficlPrimitivePad() [all …]
|
H A D | tools.c | 192 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveHashSummary() 216 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveSeeXT() 231 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveSeeXT() 237 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveSeeXT() 243 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveSeeXT() 250 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveSeeXT() 256 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveSeeXT() 559 ficlVm *vm = stack->vm; in ficlStackDisplay() local 575 myContext.vm = vm; in ficlStackDisplay() 623 context.vm = vm; in ficlVmDisplayDataStackSimple() [all …]
|
H A D | fileaccess.c | 12 pushIor(ficlVm *vm, int success) in pushIor() argument 67 pushIor(vm, f != NULL); in ficlFileOpen() 77 ficlFileOpen(vm, "a"); in ficlPrimitiveOpenFile() 84 ficlFileOpen(vm, "w"); in ficlPrimitiveCreateFile() 175 pushIor(vm, ud != -1); in ficlPrimitiveFilePosition() 185 pushIor(vm, ud != -1); in ficlPrimitiveFileSize() 194 ficlCell id = vm->sourceId; in ficlPrimitiveIncludeFile() 216 ficlVmThrow(vm, except); in ficlPrimitiveIncludeFile() 222 vm->sourceId.i = -1; in ficlPrimitiveIncludeFile() 224 ficlVmExecuteString(vm, s); in ficlPrimitiveIncludeFile() [all …]
|
H A D | search.c | 56 ficlPrimitiveDefinitions(ficlVm *vm) in ficlPrimitiveDefinitions() argument 60 FICL_VM_ASSERT(vm, dictionary); in ficlPrimitiveDefinitions() 90 ficlPrimitiveGetCurrent(ficlVm *vm) in ficlPrimitiveGetCurrent() argument 107 ficlPrimitiveGetOrder(ficlVm *vm) in ficlPrimitiveGetOrder() argument 161 ficlPrimitiveSetCurrent(ficlVm *vm) in ficlPrimitiveSetCurrent() argument 182 ficlPrimitiveSetOrder(ficlVm *vm) in ficlPrimitiveSetOrder() argument 189 ficlVmThrowError(vm, in ficlPrimitiveSetOrder() 243 ficlPrimitiveSearchPop(ficlVm *vm) in ficlPrimitiveSearchPop() argument 290 hash = ficlVmPop(vm).p; in ficlPrimitiveWidGetName() 299 ficlVmPush(vm, c); in ficlPrimitiveWidGetName() [all …]
|
H A D | vm.c | 58 FICL_VM_ASSERT(vm, (*(vm->ip - 1)) == vm->runningWord) 89 vm->dataStack = ficlStackCreate(vm, "data", nPStack); in ficlVmCreate() 113 if (vm) { in ficlVmDestroy() 1158 ficlVmOptimizeJumpToJump(vm, vm->ip - 1); in ficlVmInnerLoop() 1167 ficlVmOptimizeJumpToJump(vm, vm->ip - 1); in ficlVmInnerLoop() 2070 FICL_VM_ASSERT(vm, vm); in ficlVmGetDictionary() 2368 ficlVmErrorOut(vm, vm->pad); in ficlVmThrowError() 2383 ficlVmErrorOut(vm, vm->pad); in ficlVmThrowErrorVararg() 2433 FICL_VM_ASSERT(vm, vm); in ficlVmExecuteString() 2451 vm->runningWord->code(vm); in ficlVmExecuteString() [all …]
|
H A D | extras.c | 15 ficlPrimitiveSystem(ficlVm *vm) in ficlPrimitiveSystem() argument 26 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveSystem() 43 ficlPrimitiveLoad(ficlVm *vm) in ficlPrimitiveLoad() argument 69 ficlVmTextOut(vm, "\n"); in ficlPrimitiveLoad() 73 oldSourceId = vm->sourceId; in ficlPrimitiveLoad() 74 vm->sourceId.p = (void *)f; in ficlPrimitiveLoad() 108 vm->sourceId.i = -1; in ficlPrimitiveLoad() 112 vm->sourceId = oldSourceId; in ficlPrimitiveLoad() 133 if (!ficlVmGetWordToPad(vm)) in ficlPrimitiveSpewHash() 136 f = fopen(vm->pad, "w"); in ficlPrimitiveSpewHash() [all …]
|
H A D | float.c | 56 ficlPrimitiveFConstant(ficlVm *vm) in ficlPrimitiveFConstant() argument 132 ficlPrimitiveFDot(ficlVm *vm) in ficlPrimitiveFDot() argument 140 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveFDot() 148 ficlPrimitiveEDot(ficlVm *vm) in ficlPrimitiveEDot() argument 156 ficlVmTextOut(vm, vm->pad); in ficlPrimitiveEDot() 166 ficlVm *vm; member 191 context.vm = vm; in ficlVmDisplayFloatStack() 202 ficlPrimitiveFDepth(ficlVm *vm) in ficlPrimitiveFDepth() argument 279 if (vm->base != 10) in ficlVmParseFloatNumber() 394 ficlLocalParen(vm, 0, 1); in ficlPrimitiveFLocalParen() [all …]
|
H A D | ficl.h | 1083 #define ficlVmGetContext(vm) ((vm)->callback.context) argument 1084 #define ficlVmGetDataStack(vm) ((vm)->dataStack) argument 1085 #define ficlVmGetFloatStack(vm) ((vm)->floatStack) argument 1086 #define ficlVmGetReturnStack(vm) ((vm)->returnStack) argument 1087 #define ficlVmGetRunningWord(vm) ((vm)->runningWord) argument 1159 #define ficlVmGetInBuf(vm) ((vm)->tib.text + (vm)->tib.index) argument 1160 #define ficlVmGetInBufLen(vm) ((vm)->tib.end - (vm)->tib.text) argument 1161 #define ficlVmGetInBufEnd(vm) ((vm)->tib.end) argument 1162 #define ficlVmGetTibIndex(vm) ((vm)->tib.index) argument 1163 #define ficlVmSetTibIndex(vm, i) ((vm)->tib.index = i) argument [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm.c | 533 vm->cookie = VMINIT(vm); in vm_init() 595 struct vm *vm; in vm_create() local 731 vm_destroy(struct vm *vm) in vm_destroy() argument 2614 struct vm *vm; in vm_restart_instruction() local 3221 vm_hpet(struct vm *vm) in vm_hpet() argument 3675 vm_atpic(struct vm *vm) in vm_atpic() argument 3681 vm_atpit(struct vm *vm) in vm_atpit() argument 3687 vm_pmtmr(struct vm *vm) in vm_pmtmr() argument 3694 vm_rtc(struct vm *vm) in vm_rtc() argument 4882 struct vm *vm = arg; in vmm_data_read_vmm_time() local [all …]
|
H A D | vmm_lapic.h | 44 struct vm; 47 int lapic_rdmsr(struct vm *vm, int cpu, uint_t msr, uint64_t *rval); 48 int lapic_wrmsr(struct vm *vm, int cpu, uint_t msr, uint64_t wval); 50 int lapic_mmio_read(struct vm *vm, int cpu, uint64_t gpa, uint64_t *rval, 52 int lapic_mmio_write(struct vm *vm, int cpu, uint64_t gpa, uint64_t wval, 59 int lapic_set_intr(struct vm *vm, int cpu, int vector, bool trig); 64 lapic_intr_level(struct vm *vm, int cpu, int vector) in lapic_intr_level() argument 71 lapic_intr_edge(struct vm *vm, int cpu, int vector) in lapic_intr_edge() argument 74 return (lapic_set_intr(vm, cpu, vector, LAPIC_TRIG_EDGE)); in lapic_intr_edge() 81 int lapic_set_local_intr(struct vm *vm, int cpu, int vector); [all …]
|
H A D | vmm_instruction_emul.c | 470 static int vie_mmio_read(struct vie *vie, struct vm *vm, int cpuid, 472 static int vie_mmio_write(struct vie *vie, struct vm *vm, int cpuid, 583 vie_update_register(struct vm *vm, int vcpuid, enum vm_reg_name reg, in vie_update_register() argument 782 vie_emulate_mov_cr(struct vie *vie, struct vm *vm, int vcpuid) in vie_emulate_mov_cr() argument 1091 vie_get_gla(struct vie *vie, struct vm *vm, int vcpuid, int opsize, in vie_get_gla() argument 2208 vie_emulate_clts(struct vie *vie, struct vm *vm, int vcpuid) in vie_emulate_clts() argument 2318 vie_emulate_mmio(struct vie *vie, struct vm *vm, int vcpuid) in vie_emulate_mmio() argument 2397 vie_emulate_inout_port(struct vie *vie, struct vm *vm, int vcpuid, in vie_emulate_inout_port() argument 2460 vie_emulate_inout_str(struct vie *vie, struct vm *vm, int vcpuid) in vie_emulate_inout_str() argument 2573 vie_emulate_inout(struct vie *vie, struct vm *vm, int vcpuid) in vie_emulate_inout() argument [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/io/ |
H A D | ppt.h | 32 void ppt_unassign_all(struct vm *vm); 33 int ppt_map_mmio(struct vm *vm, int pptfd, vm_paddr_t gpa, size_t len, 35 int ppt_unmap_mmio(struct vm *vm, int pptfd, vm_paddr_t gpa, size_t len); 36 int ppt_setup_msi(struct vm *vm, int vcpu, int pptfd, uint64_t addr, 38 int ppt_setup_msix(struct vm *vm, int vcpu, int pptfd, int idx, uint64_t addr, 40 int ppt_disable_msix(struct vm *vm, int pptfd); 41 int ppt_assigned_devices(struct vm *vm); 42 boolean_t ppt_is_mmio(struct vm *vm, vm_paddr_t gpa); 43 int ppt_get_limits(struct vm *vm, int pptfd, int *msilimit, int *msixlimit); 49 int ppt_assign_device(struct vm *vm, int pptfd); [all …]
|
H A D | vioapic.h | 48 struct vioapic *vioapic_init(struct vm *vm); 51 int vioapic_assert_irq(struct vm *vm, int irq); 52 int vioapic_deassert_irq(struct vm *vm, int irq); 53 int vioapic_pulse_irq(struct vm *vm, int irq); 55 int vioapic_mmio_write(struct vm *vm, int vcpuid, uint64_t gpa, uint64_t wval, 57 int vioapic_mmio_read(struct vm *vm, int vcpuid, uint64_t gpa, uint64_t *rval, 60 int vioapic_pincount(struct vm *vm); 61 void vioapic_process_eoi(struct vm *vm, int vcpuid, int vector);
|
H A D | vatpic.h | 37 struct vatpic *vatpic_init(struct vm *vm); 47 int vatpic_assert_irq(struct vm *vm, int irq); 48 int vatpic_deassert_irq(struct vm *vm, int irq); 49 int vatpic_pulse_irq(struct vm *vm, int irq); 50 int vatpic_set_irq_trigger(struct vm *vm, int irq, 53 void vatpic_pending_intr(struct vm *vm, int *vecptr); 54 void vatpic_intr_accepted(struct vm *vm, int vector);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmdebug.c | 84 Vmalloc_t* vm; in vmdbwarn() 191 Vmalloc_t* vm; in dbwatch() 267 Vmalloc_t* vm; in dbaddr() 396 { vm->file = file; vm->line = line; vm->func = func; 444 { vm->file = file; vm->line = line; vm->func = func; 483 { vm->file = file; vm->line = line; 490 { vm->file = file; vm->line = line; 529 { vm->file = file; vm->line = line; 607 dbwarn(vm,data,(long)(begp-data),vm->file,vm->line,0,DB_CHECK); 684 { vm->file = file; vm->line = line; vm->func = func; [all …]
|
H A D | vmpool.c | 45 Vmalloc_t* vm; in poolalloc() 64 SETLOCK(vm, local); 108 CLRLOCK(vm, local); 117 Vmalloc_t* vm; in pooladdr() 162 Vmalloc_t* vm; in poolfree() 195 Vmalloc_t* vm; in poolresize() 235 Vmalloc_t* vm; in poolsize() 240 return pooladdr(vm, addr, local) == 0 ? (long)vm->data->pool : -1L; 247 Vmalloc_t* vm; in poolcompact() 285 Vmalloc_t* vm; in poolalign() [all …]
|
H A D | vmprofile.c | 185 Vmalloc_t* vm; in pfclose() 213 Vmalloc_t* vm; in pfsetinfo() 357 Vmalloc_t* vm; in vmprofile() 383 if(PFLINE(pf) < 0 || (vm && vm != PFVM(pf)) ) 412 { if(vm && PFVM(pf) != vm) 467 Vmalloc_t* vm; in pfalloc() 488 { vm->file = file; vm->line = line; vm->func = func; 502 Vmalloc_t* vm; in pffree() 533 { vm->file = file; vm->line = line; vm->func = func; 595 { vm->file = file; vm->line = line; vm->func = func; [all …]
|
H A D | vmwalk.c | 38 int vmwalk(vm, segf, handle) in vmwalk() 39 Vmalloc_t* vm; in vmwalk() 47 if(!vm) 49 for(vm = Vmheap; vm; vm = vm->next) 50 { SETLOCK(vm, 0); 52 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 ) 54 CLRLOCK(vm, 0); 59 { SETLOCK(vm, 0); 60 for(seg = vm->data->seg; seg; seg = seg->next) 61 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 ) [all …]
|
H A D | vmlast.c | 39 Vmalloc_t* vm; in lastalloc() 50 SETLOCK(vm, local); 86 CLRLOCK(vm, local); 95 Vmalloc_t* vm; in lastfree() 108 SETLOCK(vm, local); 138 Vmalloc_t* vm; in lastresize() 202 addr = (*vm->disc->memoryf)(vm, seg->addr, seg->extent, 274 Vmalloc_t* vm; in lastaddr() 297 Vmalloc_t* vm; in lastsize() 322 Vmalloc_t* vm; in lastcompact() [all …]
|
H A D | vmclose.c | 35 int vmclose(Vmalloc_t* vm) in vmclose() argument 37 int vmclose(vm) in vmclose() 38 Vmalloc_t* vm; in vmclose() 43 Vmdata_t* vd = vm->data; 44 Vmdisc_t* disc = vm->disc; 47 if(vm == Vmheap) /* the heap is never freed */ 50 if(vm->disc->exceptf && /* announcing closing event */ 51 (rv = (*vm->disc->exceptf)(vm,VM_CLOSE,(Void_t*)1,vm->disc)) < 0 ) 57 (*_Vmpfclose)(vm); 62 { if(v == vm) [all …]
|
H A D | vmprivate.c | 52 reg Vmdata_t* vd = vm->data; 73 { addr = (Vmuchar_t*)(*vm->disc->memoryf)(vm,seg->addr,seg->extent, 81 { if(!(addr = (Vmuchar_t*)(*vm->disc->memoryf)(vm, NIL(Void_t*), 0, size, vm->disc)) ) 84 CLRLOCK(vm, 0); 85 (void)(*vm->disc->exceptf)(vm, VM_NOMEM, (Void_t*)size, vm->disc); 86 SETLOCK(vm, 0); 197 reg Vmdata_t* vd = vm->data; 217 (*memoryf)(vm,caddr,seg->extent,seg->extent-less,vm->disc) != caddr) 241 if((*memoryf)(vm,caddr,seg->extent,0,vm->disc) == caddr) 271 vm->data->lock = 0; in _vmlock() [all …]
|
H A D | malloc.c | 390 { (void)(*vm->meth.freef)(vm, (Void_t*)list, 1); in clrfreelist() 483 return vm; in getregion() 521 addr = (*vm->meth.allocf)(vm, size, local); 597 (void)(*vm->meth.freef)(vm, data, 0); 641 addr = (*vm->meth.alignf)(vm, size, align, local); 759 (void)(*vm->meth.freef)(vm, f, 0); 1316 if (vm && vm->meth.meth == VM_MTDEBUG) in _vmoptions() 1364 if (vm && vm->meth.meth == VM_MTDEBUG) in _vmoptions() 1378 if (v && vm && vm->meth.meth == VM_MTDEBUG) in _vmoptions() 1408 if (vm) in _vmoptions() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | vmalloc.h | 210 #define _VM_(vm) ((Vmalloc_t*)(vm)) argument 224 #define _VMLINE_(vm) (_VM_(vm)->line = 0) 233 #define _VMFL_(vm) (_VMFILE_(vm), _VMLINE_(vm), _VMFUNC_(vm)) argument 235 #define vmalloc(vm,sz) (_VMFL_(vm), \ argument 240 #define vmfree(vm,d) (_VMFL_(vm), \ argument 308 #define vmalloc(vm,sz) (*(_VM_(vm)->meth.allocf))((vm),(sz),0) argument 317 #define vmfree(vm,d) (*(_VM_(vm)->meth.freef))((vm),(Void_t*)(d),0) argument 321 #define vmalign(vm,sz,align) (*(_VM_(vm)->meth.alignf))((vm),(sz),(align),0) argument 324 #define vmaddr(vm,addr) (*(_VM_(vm)->meth.addrf))((vm),(Void_t*)(addr),0) argument 325 #define vmsize(vm,addr) (*(_VM_(vm)->meth.sizef))((vm),(Void_t*)(addr),0) argument [all …]
|