Lines Matching full:vcpu

210 struct vcpu *
213 struct vcpu *vcpu; in vm_vcpu_open() local
215 vcpu = malloc(sizeof(*vcpu)); in vm_vcpu_open()
216 vcpu->ctx = ctx; in vm_vcpu_open()
217 vcpu->vcpuid = vcpuid; in vm_vcpu_open()
218 return (vcpu); in vm_vcpu_open()
222 vm_vcpu_close(struct vcpu *vcpu) in vm_vcpu_close() argument
224 free(vcpu); in vm_vcpu_close()
228 vcpu_id(struct vcpu *vcpu) in vcpu_id() argument
230 return (vcpu->vcpuid); in vcpu_id()
653 vcpu_ioctl(struct vcpu *vcpu, u_long cmd, void *arg) in vcpu_ioctl() argument
660 *(int *)arg = vcpu->vcpuid; in vcpu_ioctl()
661 return (ioctl(vcpu->ctx->fd, cmd, arg)); in vcpu_ioctl()
665 vm_set_register(struct vcpu *vcpu, int reg, uint64_t val) in vm_set_register() argument
674 error = vcpu_ioctl(vcpu, VM_SET_REGISTER, &vmreg); in vm_set_register()
679 vm_get_register(struct vcpu *vcpu, int reg, uint64_t *ret_val) in vm_get_register() argument
687 error = vcpu_ioctl(vcpu, VM_GET_REGISTER, &vmreg); in vm_get_register()
693 vm_set_register_set(struct vcpu *vcpu, unsigned int count, in vm_set_register_set() argument
704 error = vcpu_ioctl(vcpu, VM_SET_REGISTER_SET, &vmregset); in vm_set_register_set()
709 vm_get_register_set(struct vcpu *vcpu, unsigned int count, in vm_get_register_set() argument
720 error = vcpu_ioctl(vcpu, VM_GET_REGISTER_SET, &vmregset); in vm_get_register_set()
725 vm_run(struct vcpu *vcpu, struct vm_run *vmrun) in vm_run() argument
727 return (vcpu_ioctl(vcpu, VM_RUN, vmrun)); in vm_run()
771 vm_get_capability(struct vcpu *vcpu, enum vm_cap_type cap, int *retval) in vm_get_capability() argument
779 error = vcpu_ioctl(vcpu, VM_GET_CAPABILITY, &vmcap); in vm_get_capability()
785 vm_set_capability(struct vcpu *vcpu, enum vm_cap_type cap, int val) in vm_set_capability() argument
793 return (vcpu_ioctl(vcpu, VM_SET_CAPABILITY, &vmcap)); in vm_set_capability()
797 vm_get_stats(struct vcpu *vcpu, struct timeval *ret_tv, in vm_get_stats() argument
811 if (vcpu_ioctl(vcpu, VM_STATS, &vmstats) != 0) in vm_get_stats()
875 vm_gla2gpa(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_gla2gpa() argument
886 error = vcpu_ioctl(vcpu, VM_GLA2GPA, &gg); in vm_gla2gpa()
896 vm_gla2gpa_nofault(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_gla2gpa_nofault() argument
907 error = vcpu_ioctl(vcpu, VM_GLA2GPA_NOFAULT, &gg); in vm_gla2gpa_nofault()
921 vm_copy_setup(struct vcpu *vcpu, struct vm_guest_paging *paging, in vm_copy_setup() argument
936 error = vm_gla2gpa(vcpu, paging, gla, prot, &gpa, fault); in vm_copy_setup()
943 va = vm_map_gpa(vcpu->ctx, gpa, n); in vm_copy_setup()
1046 vm_activate_cpu(struct vcpu *vcpu) in vm_activate_cpu() argument
1052 error = vcpu_ioctl(vcpu, VM_ACTIVATE_CPU, &ac); in vm_activate_cpu()
1069 vm_suspend_cpu(struct vcpu *vcpu) in vm_suspend_cpu() argument
1075 error = vcpu_ioctl(vcpu, VM_SUSPEND_CPU, &ac); in vm_suspend_cpu()
1080 vm_resume_cpu(struct vcpu *vcpu) in vm_resume_cpu() argument
1086 error = vcpu_ioctl(vcpu, VM_RESUME_CPU, &ac); in vm_resume_cpu()
1104 vm_get_intinfo(struct vcpu *vcpu, uint64_t *info1, uint64_t *info2) in vm_get_intinfo() argument
1110 error = vcpu_ioctl(vcpu, VM_GET_INTINFO, &vmii); in vm_get_intinfo()
1119 vm_set_intinfo(struct vcpu *vcpu, uint64_t info1) in vm_set_intinfo() argument
1126 error = vcpu_ioctl(vcpu, VM_SET_INTINFO, &vmii); in vm_set_intinfo()
1133 vm_restart_instruction(struct vcpu *vcpu) in vm_restart_instruction() argument
1137 return (vcpu_ioctl(vcpu, VM_RESTART_INSTRUCTION, &arg)); in vm_restart_instruction()