Home
last modified time | relevance | path

Searched refs:vhostfd (Results 1 – 10 of 10) sorted by relevance

/openbmc/qemu/hw/virtio/
H A Dvhost-vsock.c129 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()
146 error_prepend(errp, "vhost-vsock: unable to parse vhostfd: "); in vhost_vsock_device_realize()
150 if (!qemu_set_blocking(vhostfd, false, errp)) { in vhost_vsock_device_realize()
154 vhostfd = open("/dev/vhost-vsock", O_RDWR); in vhost_vsock_device_realize()
155 if (vhostfd < 0) { in vhost_vsock_device_realize()
160 if (!qemu_set_blocking(vhostfd, fals in vhost_vsock_device_realize()
[all...]
H A Dvdpa-dev.c65 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...]
/openbmc/qemu/hw/scsi/
H A Dvhost-scsi.c230 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()
242 error_prepend(errp, "vhost-scsi: unable to parse vhostfd: "); in vhost_scsi_realize()
246 vhostfd = open("/dev/vhost-scsi", O_RDWR); in vhost_scsi_realize()
247 if (vhostfd < 0) { in vhost_scsi_realize()
280 ret = vhost_dev_init(&vsc->dev, (void *)(uintptr_t)vhostfd, in vhost_scsi_realize()
285 * vhostfd, do in vhost_scsi_realize()
[all...]
/openbmc/qemu/include/hw/virtio/
H A Dvhost-vsock.h25 char *vhostfd; member
H A Dvdpa-dev.h29 int vhostfd; member
H A Dvirtio-scsi.h59 char *vhostfd; member
/openbmc/qemu/net/
H A Dtap.c368 * vhostforce or vhostfd options at all. Please see net_init_tap_one().
703 int vhostfd; in net_init_tap_one()
739 vhostfd = monitor_fd_param(monitor_cur(), vhostfdname, &err); in net_init_tap_one()
740 if (vhostfd == -1) { in net_init_tap_one()
744 if (!qemu_set_blocking(vhostfd, false, errp)) { in net_init_tap_one()
748 vhostfd = open("/dev/vhost-net", O_RDWR); in net_init_tap_one()
749 if (vhostfd < 0) { in net_init_tap_one()
754 if (!qemu_set_blocking(vhostfd, false, errp)) { in net_init_tap_one()
758 options.opaque = (void *)(uintptr_t)vhostfd; in net_init_tap_one()
773 error_setg(errp, "vhostfd( in net_init_tap_one()
691 int vhostfd; net_init_tap_one() local
[all...]
H A Dvhost-vdpa.c1810 if (!opts->vhostdev && !opts->vhostfd) { in net_init_vhost_vdpa()
1816 if (opts->vhostdev && opts->vhostfd) { in net_init_vhost_vdpa()
1829 vdpa_device_fd = monitor_fd_param(monitor_cur(), opts->vhostfd, errp); in net_init_vhost_vdpa()
/openbmc/qemu/qapi/
H A Dnet.json346 # @vhostfd: file descriptor of an already opened vhost net device
372 '*vhostfd': 'str',
636 # @vhostfd: file descriptor of an already opened vhost vdpa device
653 '*vhostfd': 'str',
/openbmc/qemu/
H A Dqemu-options.hx2885 " [,vhostfd=h][,vhostfds=x:y:...:z][,vhostforce=on|off][,queues=n]\n"
2904 " use 'vhostfd=h' to connect to an already opened vhost net device\n"
2998 "-netdev vhost-vdpa,id=str[,vhostdev=/path/to/dev][,vhostfd=h]\n"
3001 " use 'vhostfd=h' to connect to an already opened vhost vdpa device\n"
3904 ``-netdev vhost-vdpa[,vhostdev=/path/to/dev][,vhostfd=h]``