Searched refs:vhostfd (Results 1 – 10 of 10) sorted by relevance
/qemu/hw/virtio/ |
H A D | vhost-vsock.c | 129 int vhostfd; in vhost_vsock_device_realize() local 143 if (vsock->conf.vhostfd) { in vhost_vsock_device_realize() 144 vhostfd = monitor_fd_param(monitor_cur(), vsock->conf.vhostfd, errp); in vhost_vsock_device_realize() 145 if (vhostfd == -1) { in vhost_vsock_device_realize() 150 if (!g_unix_set_fd_nonblocking(vhostfd, true, NULL)) { in vhost_vsock_device_realize() 156 vhostfd = open("/dev/vhost-vsock", O_RDWR); in vhost_vsock_device_realize() 157 if (vhostfd < 0) { in vhost_vsock_device_realize() 163 if (!g_unix_set_fd_nonblocking(vhostfd, true, NULL)) { in vhost_vsock_device_realize() 172 ret = vhost_dev_init(&vvc->vhost_dev, (void *)(uintptr_t)vhostfd, in vhost_vsock_device_realize() 211 DEFINE_PROP_STRING("vhostfd", VHostVSock, conf.vhostfd),
|
H A D | vdpa-dev.c | 65 v->vhostfd = qemu_open(v->vhostdev, O_RDWR, errp); in vhost_vdpa_device_realize() 70 v->vdev_id = vhost_vdpa_device_get_u32(v->vhostfd, in vhost_vdpa_device_realize() 76 max_queue_size = vhost_vdpa_device_get_u32(v->vhostfd, in vhost_vdpa_device_realize() 90 v->num_queues = vhost_vdpa_device_get_u32(v->vhostfd, in vhost_vdpa_device_realize() 110 ret = vhost_vdpa_get_iova_range(v->vhostfd, &iova_range); in vhost_vdpa_device_realize() 117 v->vdpa.shared->device_fd = v->vhostfd; in vhost_vdpa_device_realize() 127 v->config_size = vhost_vdpa_device_get_u32(v->vhostfd, in vhost_vdpa_device_realize() 168 qemu_close(v->vhostfd); in vhost_vdpa_device_realize() 169 v->vhostfd = -1; in vhost_vdpa_device_realize() 190 qemu_close(s->vhostfd); in vhost_vdpa_device_unrealize() [all …]
|
/qemu/hw/scsi/ |
H A D | vhost-scsi.c | 230 int vhostfd = -1; in vhost_scsi_realize() local 239 if (vs->conf.vhostfd) { in vhost_scsi_realize() 240 vhostfd = monitor_fd_param(monitor_cur(), vs->conf.vhostfd, errp); in vhost_scsi_realize() 241 if (vhostfd == -1) { in vhost_scsi_realize() 246 vhostfd = open("/dev/vhost-scsi", O_RDWR); in vhost_scsi_realize() 247 if (vhostfd < 0) { in vhost_scsi_realize() 281 ret = vhost_dev_init(&vsc->dev, (void *)(uintptr_t)vhostfd, in vhost_scsi_realize() 288 vhostfd = -1; in vhost_scsi_realize() 315 if (vhostfd >= 0) { in vhost_scsi_realize() 316 close(vhostfd); in vhost_scsi_realize() [all …]
|
/qemu/net/ |
H A D | tap.c | 655 int vhostfd; in net_init_tap_one() local 691 vhostfd = monitor_fd_param(monitor_cur(), vhostfdname, &err); in net_init_tap_one() 692 if (vhostfd == -1) { in net_init_tap_one() 696 if (!g_unix_set_fd_nonblocking(vhostfd, true, NULL)) { in net_init_tap_one() 702 vhostfd = open("/dev/vhost-net", O_RDWR); in net_init_tap_one() 703 if (vhostfd < 0) { in net_init_tap_one() 708 if (!g_unix_set_fd_nonblocking(vhostfd, true, NULL)) { in net_init_tap_one() 713 options.opaque = (void *)(uintptr_t)vhostfd; in net_init_tap_one() 775 vhostfdname = tap->vhostfd; in net_init_tap() 829 tap->vhostfd) { in net_init_tap()
|
H A D | vhost-vdpa.c | 1783 if (!opts->vhostdev && !opts->vhostfd) { in net_init_vhost_vdpa() 1789 if (opts->vhostdev && opts->vhostfd) { in net_init_vhost_vdpa() 1802 vdpa_device_fd = monitor_fd_param(monitor_cur(), opts->vhostfd, errp); in net_init_vhost_vdpa()
|
/qemu/include/hw/virtio/ |
H A D | vhost-vsock.h | 25 char *vhostfd; member
|
H A D | vdpa-dev.h | 29 int vhostfd; member
|
H A D | virtio-scsi.h | 59 char *vhostfd; member
|
/qemu/qapi/ |
H A D | net.json | 229 # @vhostfd: file descriptor of an already opened vhost net device 255 '*vhostfd': 'str', 508 # @vhostfd: file descriptor of an already opened vhost vdpa device 525 '*vhostfd': 'str',
|
/qemu/ |
H A D | qemu-options.hx | 2817 " [,vhostfd=h][,vhostfds=x:y:...:z][,vhostforce=on|off][,queues=n]\n" 2836 " use 'vhostfd=h' to connect to an already opened vhost net device\n" 2927 "-netdev vhost-vdpa,id=str[,vhostdev=/path/to/dev][,vhostfd=h]\n" 2930 " use 'vhostfd=h' to connect to an already opened vhost vdpa device\n" 3681 ``-netdev vhost-vdpa[,vhostdev=/path/to/dev][,vhostfd=h]``
|