D | virtio_test.c | 68 void vhost_vq_setup(struct vdev_info *dev, struct vq_info *info) in vhost_vq_setup() argument 72 unsigned long long features = dev->vdev.features; in vhost_vq_setup() 80 r = ioctl(dev->control, VHOST_SET_FEATURES, &features); in vhost_vq_setup() 83 r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state); in vhost_vq_setup() 86 r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state); in vhost_vq_setup() 88 r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr); in vhost_vq_setup() 91 r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file); in vhost_vq_setup() 94 r = ioctl(dev->control, VHOST_SET_VRING_CALL, &file); in vhost_vq_setup() 111 static void vq_info_add(struct vdev_info *dev, int num) in vq_info_add() argument 113 struct vq_info *info = &dev->vqs[dev->nvqs]; in vq_info_add() [all …]
|