Searched refs:vhostfd (Results 1 – 10 of 10) sorted by relevance
/openbmc/qemu/hw/virtio/ |
H A D | vhost-vsock.c | 128 int vhostfd; in vhost_vsock_device_realize() local 142 if (vsock->conf.vhostfd) { in vhost_vsock_device_realize() 143 vhostfd = monitor_fd_param(monitor_cur(), vsock->conf.vhostfd, errp); in vhost_vsock_device_realize() 144 if (vhostfd == -1) { in vhost_vsock_device_realize() 149 if (!g_unix_set_fd_nonblocking(vhostfd, true, NULL)) { in vhost_vsock_device_realize() 155 vhostfd = open("/dev/vhost-vsock", O_RDWR); in vhost_vsock_device_realize() 156 if (vhostfd < 0) { in vhost_vsock_device_realize() 162 if (!g_unix_set_fd_nonblocking(vhostfd, true, NULL)) { in vhost_vsock_device_realize() 171 ret = vhost_dev_init(&vvc->vhost_dev, (void *)(uintptr_t)vhostfd, in vhost_vsock_device_realize() 210 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 …]
|
/openbmc/qemu/hw/scsi/ |
H A D | vhost-scsi.c | 229 int vhostfd = -1; in vhost_scsi_realize() local 238 if (vs->conf.vhostfd) { in vhost_scsi_realize() 239 vhostfd = monitor_fd_param(monitor_cur(), vs->conf.vhostfd, errp); in vhost_scsi_realize() 240 if (vhostfd == -1) { in vhost_scsi_realize() 245 vhostfd = open("/dev/vhost-scsi", O_RDWR); in vhost_scsi_realize() 246 if (vhostfd < 0) { in vhost_scsi_realize() 280 ret = vhost_dev_init(&vsc->dev, (void *)(uintptr_t)vhostfd, in vhost_scsi_realize() 287 vhostfd = -1; in vhost_scsi_realize() 314 if (vhostfd >= 0) { in vhost_scsi_realize() 315 close(vhostfd); in vhost_scsi_realize() [all …]
|
/openbmc/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 | 1800 if (!opts->vhostdev && !opts->vhostfd) { in net_init_vhost_vdpa() 1806 if (opts->vhostdev && opts->vhostfd) { in net_init_vhost_vdpa() 1819 vdpa_device_fd = monitor_fd_param(monitor_cur(), opts->vhostfd, errp); in net_init_vhost_vdpa()
|
/openbmc/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 | 58 char *vhostfd; member
|
/openbmc/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',
|
/openbmc/qemu/ |
H A D | qemu-options.hx | 2771 " [,vhostfd=h][,vhostfds=x:y:...:z][,vhostforce=on|off][,queues=n]\n" 2790 " use 'vhostfd=h' to connect to an already opened vhost net device\n" 2881 "-netdev vhost-vdpa,id=str[,vhostdev=/path/to/dev][,vhostfd=h]\n" 2884 " use 'vhostfd=h' to connect to an already opened vhost vdpa device\n" 3635 ``-netdev vhost-vdpa[,vhostdev=/path/to/dev][,vhostfd=h]``
|