Lines Matching refs:vmctx

72 struct vmctx {  struct
110 struct vmctx *
113 struct vmctx *vm; in vm_open()
115 vm = malloc(sizeof(struct vmctx) + strlen(name) + 1); in vm_open()
134 vm_destroy(struct vmctx *vm) in vm_destroy()
170 vm_get_lowmem_limit(struct vmctx *ctx) in vm_get_lowmem_limit()
177 vm_set_lowmem_limit(struct vmctx *ctx, uint32_t limit) in vm_set_lowmem_limit()
184 vm_set_memflags(struct vmctx *ctx, int flags) in vm_set_memflags()
191 vm_get_memflags(struct vmctx *ctx) in vm_get_memflags()
201 vm_mmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, int segid, vm_ooffset_t off, in vm_mmap_memseg()
237 vm_mmap_getnext(struct vmctx *ctx, vm_paddr_t *gpa, int *segid, in vm_mmap_getnext()
275 vm_alloc_memseg(struct vmctx *ctx, int segid, size_t len, const char *name) in vm_alloc_memseg()
316 vm_get_memseg(struct vmctx *ctx, int segid, size_t *lenp, char *namebuf, in vm_get_memseg()
337 setup_memory_segment(struct vmctx *ctx, vm_paddr_t gpa, size_t len, char *base) in setup_memory_segment()
360 vm_setup_memory(struct vmctx *ctx, size_t memsize, enum vm_mmap_style vms) in vm_setup_memory()
426 vm_map_gpa(struct vmctx *ctx, vm_paddr_t gaddr, size_t len) in vm_map_gpa()
448 vm_get_lowmem_size(struct vmctx *ctx) in vm_get_lowmem_size()
455 vm_get_highmem_size(struct vmctx *ctx) in vm_get_highmem_size()
462 vm_create_devmem(struct vmctx *ctx, int segid, const char *name, size_t len) in vm_create_devmem()
512 vm_set_desc(struct vmctx *ctx, int vcpu, int reg, in vm_set_desc()
530 vm_get_desc(struct vmctx *ctx, int vcpu, int reg, in vm_get_desc()
550 vm_get_seg_desc(struct vmctx *ctx, int vcpu, int reg, struct seg_desc *seg_desc) in vm_get_seg_desc()
560 vm_set_register(struct vmctx *ctx, int vcpu, int reg, uint64_t val) in vm_set_register()
575 vm_get_register(struct vmctx *ctx, int vcpu, int reg, uint64_t *ret_val) in vm_get_register()
590 vm_set_register_set(struct vmctx *ctx, int vcpu, unsigned int count, in vm_set_register_set()
607 vm_get_register_set(struct vmctx *ctx, int vcpu, unsigned int count, in vm_get_register_set()
624 vm_run(struct vmctx *ctx, int vcpu, struct vm_exit *vmexit) in vm_run()
638 vm_suspend(struct vmctx *ctx, enum vm_suspend_how how) in vm_suspend()
648 vm_reinit(struct vmctx *ctx) in vm_reinit()
655 vm_inject_exception(struct vmctx *ctx, int vcpu, int vector, int errcode_valid, in vm_inject_exception()
670 vm_apicid2vcpu(struct vmctx *ctx, int apicid) in vm_apicid2vcpu()
680 vm_lapic_irq(struct vmctx *ctx, int vcpu, int vector) in vm_lapic_irq()
692 vm_lapic_local_irq(struct vmctx *ctx, int vcpu, int vector) in vm_lapic_local_irq()
704 vm_lapic_msi(struct vmctx *ctx, uint64_t addr, uint64_t msg) in vm_lapic_msi()
716 vm_ioapic_assert_irq(struct vmctx *ctx, int irq) in vm_ioapic_assert_irq()
727 vm_ioapic_deassert_irq(struct vmctx *ctx, int irq) in vm_ioapic_deassert_irq()
738 vm_ioapic_pulse_irq(struct vmctx *ctx, int irq) in vm_ioapic_pulse_irq()
749 vm_ioapic_pincount(struct vmctx *ctx, int *pincount) in vm_ioapic_pincount()
756 vm_isa_assert_irq(struct vmctx *ctx, int atpic_irq, int ioapic_irq) in vm_isa_assert_irq()
768 vm_isa_deassert_irq(struct vmctx *ctx, int atpic_irq, int ioapic_irq) in vm_isa_deassert_irq()
780 vm_isa_pulse_irq(struct vmctx *ctx, int atpic_irq, int ioapic_irq) in vm_isa_pulse_irq()
792 vm_isa_set_irq_trigger(struct vmctx *ctx, int atpic_irq, in vm_isa_set_irq_trigger()
805 vm_inject_nmi(struct vmctx *ctx, int vcpu) in vm_inject_nmi()
854 vm_get_capability(struct vmctx *ctx, int vcpu, enum vm_cap_type cap, in vm_get_capability()
870 vm_set_capability(struct vmctx *ctx, int vcpu, enum vm_cap_type cap, int val) in vm_set_capability()
883 vm_assign_pptdev(struct vmctx *ctx, int bus, int slot, int func) in vm_assign_pptdev()
896 vm_unassign_pptdev(struct vmctx *ctx, int bus, int slot, int func) in vm_unassign_pptdev()
909 vm_map_pptdev_mmio(struct vmctx *ctx, int bus, int slot, int func, in vm_map_pptdev_mmio()
926 vm_setup_pptdev_msi(struct vmctx *ctx, int vcpu, int bus, int slot, int func, in vm_setup_pptdev_msi()
944 vm_setup_pptdev_msix(struct vmctx *ctx, int vcpu, int bus, int slot, int func, in vm_setup_pptdev_msix()
963 vm_get_stats(struct vmctx *ctx, int vcpu, struct timeval *ret_tv, in vm_get_stats()
984 vm_get_stat_desc(struct vmctx *ctx, int index) in vm_get_stat_desc()
996 vm_get_x2apic_state(struct vmctx *ctx, int vcpu, enum x2apic_state *state) in vm_get_x2apic_state()
1010 vm_set_x2apic_state(struct vmctx *ctx, int vcpu, enum x2apic_state state) in vm_set_x2apic_state()
1029 vcpu_reset(struct vmctx *vmctx, int vcpu) in vcpu_reset() argument
1039 error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RFLAGS, rflags); in vcpu_reset()
1044 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RIP, rip)) != 0) in vcpu_reset()
1048 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_CR0, cr0)) != 0) in vcpu_reset()
1051 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_CR3, zero)) != 0) in vcpu_reset()
1055 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_CR4, cr4)) != 0) in vcpu_reset()
1064 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_CS, in vcpu_reset()
1070 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_CS, sel)) != 0) in vcpu_reset()
1079 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_SS, in vcpu_reset()
1084 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_DS, in vcpu_reset()
1089 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_ES, in vcpu_reset()
1094 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_FS, in vcpu_reset()
1099 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_GS, in vcpu_reset()
1105 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_SS, sel)) != 0) in vcpu_reset()
1107 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_DS, sel)) != 0) in vcpu_reset()
1109 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_ES, sel)) != 0) in vcpu_reset()
1111 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_FS, sel)) != 0) in vcpu_reset()
1113 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_GS, sel)) != 0) in vcpu_reset()
1118 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RAX, zero)) != 0) in vcpu_reset()
1120 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RBX, zero)) != 0) in vcpu_reset()
1122 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RCX, zero)) != 0) in vcpu_reset()
1124 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RDX, rdx)) != 0) in vcpu_reset()
1126 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RSI, zero)) != 0) in vcpu_reset()
1128 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RDI, zero)) != 0) in vcpu_reset()
1130 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RBP, zero)) != 0) in vcpu_reset()
1132 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_RSP, zero)) != 0) in vcpu_reset()
1139 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_GDTR, in vcpu_reset()
1144 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_IDTR, in vcpu_reset()
1153 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_TR, 0, 0, desc_access); in vcpu_reset()
1158 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_TR, sel)) != 0) in vcpu_reset()
1165 error = vm_set_desc(vmctx, vcpu, VM_REG_GUEST_LDTR, desc_base, in vcpu_reset()
1171 if ((error = vm_set_register(vmctx, vcpu, VM_REG_GUEST_LDTR, 0)) != 0) in vcpu_reset()
1182 vm_get_gpa_pmap(struct vmctx *ctx, uint64_t gpa, uint64_t *pte, int *num) in vm_get_gpa_pmap()
1202 vm_get_hpet_capabilities(struct vmctx *ctx, uint32_t *capabilities) in vm_get_hpet_capabilities()
1215 vm_gla2gpa(struct vmctx *ctx, int vcpu, struct vm_guest_paging *paging, in vm_gla2gpa()
1236 vm_gla2gpa_nofault(struct vmctx *ctx, int vcpu, struct vm_guest_paging *paging, in vm_gla2gpa_nofault()
1261 vm_copy_setup(struct vmctx *ctx, int vcpu, struct vm_guest_paging *paging, in vm_copy_setup()
1299 vm_copy_teardown(struct vmctx *ctx, int vcpu, struct iovec *iov, int iovcnt) in vm_copy_teardown()
1306 vm_copyin(struct vmctx *ctx, int vcpu, struct iovec *iov, void *vp, size_t len) in vm_copyin()
1326 vm_copyout(struct vmctx *ctx, int vcpu, const void *vp, struct iovec *iov, in vm_copyout()
1347 vm_get_cpus(struct vmctx *ctx, int which, cpuset_t *cpus) in vm_get_cpus()
1362 vm_active_cpus(struct vmctx *ctx, cpuset_t *cpus) in vm_active_cpus()
1369 vm_suspended_cpus(struct vmctx *ctx, cpuset_t *cpus) in vm_suspended_cpus()
1376 vm_debug_cpus(struct vmctx *ctx, cpuset_t *cpus) in vm_debug_cpus()
1383 vm_activate_cpu(struct vmctx *ctx, int vcpu) in vm_activate_cpu()
1395 vm_suspend_cpu(struct vmctx *ctx, int vcpu) in vm_suspend_cpu()
1407 vm_resume_cpu(struct vmctx *ctx, int vcpu) in vm_resume_cpu()
1419 vm_get_intinfo(struct vmctx *ctx, int vcpu, uint64_t *info1, uint64_t *info2) in vm_get_intinfo()
1435 vm_set_intinfo(struct vmctx *ctx, int vcpu, uint64_t info1) in vm_set_intinfo()
1448 vm_rtc_write(struct vmctx *ctx, int offset, uint8_t value) in vm_rtc_write()
1461 vm_rtc_read(struct vmctx *ctx, int offset, uint8_t *retval) in vm_rtc_read()
1475 vm_rtc_settime(struct vmctx *ctx, time_t secs) in vm_rtc_settime()
1487 vm_rtc_gettime(struct vmctx *ctx, time_t *secs) in vm_rtc_gettime()
1502 struct vmctx *ctx = arg; in vm_restart_instruction()
1508 vm_set_topology(struct vmctx *ctx, in vm_set_topology()
1522 vm_get_topology(struct vmctx *ctx, in vm_get_topology()
1540 vm_get_device_fd(struct vmctx *ctx) in vm_get_device_fd()