Home
last modified time | relevance | path

Searched refs:vmd_fd (Results 1 – 6 of 6) sorted by relevance

/openbsd/usr.sbin/vmd/
H A Dpriv.c66 if ((env->vmd_fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) in priv_run()
123 if (ioctl(env->vmd_fd, SIOCSIFDESCR, &ifr) == -1) in priv_dispatch_parent()
129 if (ioctl(env->vmd_fd, SIOCSIFRDOMAIN, &ifr) == -1) in priv_dispatch_parent()
142 if (ioctl(env->vmd_fd, SIOCBRDGADD, &ifbr) == -1 && in priv_dispatch_parent()
149 if (ioctl(env->vmd_fd, SIOCGIFFLAGS, &ifr) == -1) in priv_dispatch_parent()
157 if (ioctl(env->vmd_fd, SIOCGIFFLAGS, &ifr) == -1) { in priv_dispatch_parent()
165 if (ioctl(env->vmd_fd, SIOCSIFFLAGS, &ifr) == -1) in priv_dispatch_parent()
178 if (ioctl(env->vmd_fd, SIOCAIFGROUP, &ifgr) == -1 && in priv_dispatch_parent()
197 if (ioctl(env->vmd_fd, SIOCAIFADDR, &ifra) == -1) in priv_dispatch_parent()
H A Dvm.c102 env->vmd_fd = fd_vmm; in vm_main()
514 if ((ret = ioctl(env->vmd_fd, VMM_IOC_READREGS, &vrp))) { in send_vm()
540 if ((ret = ioctl(env->vmd_fd, VMM_IOC_READVMPARAMS, &vpp))) { in send_vm()
555 if (ioctl(env->vmd_fd, VMM_IOC_TERM, &vtp) == -1) { in send_vm()
594 if (ioctl(env->vmd_fd, VMM_IOC_WRITEVMPARAMS, &vpp) < 0) { in restore_vm_params()
752 if (ioctl(env->vmd_fd, VMM_IOC_RESETCPU, &vrp) == -1) in vcpu_reset()
848 if (ioctl(env->vmd_fd, VMM_IOC_CREATE, vcp) == -1) in vmm_create_vm()
954 if ((ret = ioctl(env->vmd_fd, VMM_IOC_WRITEREGS, in run_vm()
1190 if (ioctl(env->vmd_fd, VMM_IOC_RUN, vrp) == -1) { in vcpu_run_loop()
1237 if (ioctl(env->vmd_fd, VMM_IOC_INTR, &vip) == -1) in vcpu_intr()
H A Dvmm.c311 if (env->vmd_fd > -1) in vmm_dispatch_parent()
313 env->vmd_fd = imsg_get_fd(imsg); in vmm_dispatch_parent()
578 if (ioctl(env->vmd_fd, VMM_IOC_TERM, vtp) == -1) in terminate_vm()
773 snprintf(vmm_fd, sizeof(vmm_fd), "%d", env->vmd_fd); in vmm_start_vm()
855 if (ioctl(env->vmd_fd, VMM_IOC_INFO, &vip) == -1) in get_info_vm()
867 if (ioctl(env->vmd_fd, VMM_IOC_INFO, &vip) == -1) { in get_info_vm()
H A Dvmd.c671 env->vmd_fd = -1; in main()
803 env->vmd_fd = open(VMM_NODE, O_RDWR | O_CLOEXEC); in main()
804 if (env->vmd_fd == -1) in main()
929 IMSG_VMDOP_RECEIVE_VMM_FD, -1, env->vmd_fd, NULL, 0); in vmd_configure()
H A Dvmd.h402 int vmd_fd; member
H A Dvirtio.c1493 snprintf(vmm_fd, sizeof(vmm_fd), "%d", env->vmd_fd); in virtio_dev_launch()