Searched refs:vhost_fd (Results 1 – 3 of 3) sorted by relevance
| /devicemodel/hw/pci/virtio/ |
| A D | vhost_vsock.c | 182 vhost_vsock->vhost_fd = open("/dev/vhost-vsock", O_RDWR);; in vhost_vsock_init() 183 if (vhost_vsock->vhost_fd < 0) { in vhost_vsock_init() 187 rc = fcntl(vhost_vsock->vhost_fd, F_GETFL); in vhost_vsock_init() 192 if (fcntl(vhost_vsock->vhost_fd, F_SETFL, rc | O_NONBLOCK) == -1) { in vhost_vsock_init() 197 rc = vhost_dev_init(&vhost_vsock->vdev, base, vhost_vsock->vhost_fd, vq_idx, in vhost_vsock_init() 224 close(vhost_vsock->vhost_fd); in vhost_vsock_deinit()
|
| A D | virtio_net.c | 789 int vhost_fd = -1; in virtio_net_tap_setup() local 819 vhost_fd = open("/dev/vhost-net", O_RDWR); in virtio_net_tap_setup() 820 if (vhost_fd < 0) in virtio_net_tap_setup() 823 net->vhost_net = vhost_net_init(&net->base, vhost_fd, in virtio_net_tap_setup() 828 close(vhost_fd); in virtio_net_tap_setup() 829 vhost_fd = -1; in virtio_net_tap_setup() 834 if (vhost_fd < 0) { in virtio_net_tap_setup()
|
| /devicemodel/include/ |
| A D | vhost_vsock.h | 50 int vhost_fd; member
|
Completed in 6 milliseconds