/openbmc/qemu/hw/net/ |
H A D | vhost_net.c | 192 hdev->vq_index + j, in vhost_net_disable_notifiers_nvhosts() 218 hdev->vq_index + j); in vhost_net_disable_notifiers_nvhosts() 268 hdev->vq_index + j, in vhost_net_enable_notifiers() 351 net->dev.vq_index = net->nc->queue_index * net->dev.nvqs; in vhost_net_init() 397 static void vhost_net_set_vq_index(struct vhost_net *net, int vq_index, in vhost_net_set_vq_index() argument 400 net->dev.vq_index = vq_index; in vhost_net_set_vq_index() 430 if (!virtio_queue_enabled(dev, net->dev.vq_index + in vhost_net_start_one() 454 if (!virtio_queue_enabled(dev, net->dev.vq_index + in vhost_net_start_one() 725 int vq_index) in vhost_net_virtqueue_reset() argument 735 idx = vhost_ops->vhost_get_vq_index(&net->dev, vq_index); in vhost_net_virtqueue_reset() [all …]
|
H A D | vhost_net-stub.c | 115 int vq_index) in vhost_net_virtqueue_reset() argument 121 int vq_index) in vhost_net_virtqueue_restart() argument
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-vdpa.c | 568 return dev->vq_index + dev->nvqs == dev->vq_index_end; in vhost_vdpa_last_dev() 712 for (i = dev->vq_index; i < dev->vq_index + n; i++) { in vhost_vdpa_host_notifiers_uninit() 736 for (i = dev->vq_index; i < dev->vq_index + dev->nvqs; i++) { in vhost_vdpa_host_notifiers_init() 738 vhost_vdpa_host_notifiers_uninit(dev, i - dev->vq_index); in vhost_vdpa_host_notifiers_init() 896 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_vdpa_get_vq_index() 1054 .index = dev->vq_index + idx, in vhost_vdpa_svq_set_fds() 1227 uint16_t vq_index = dev->vq_index + idx; in vhost_vdpa_svq_setup() local 1229 .index = vq_index, in vhost_vdpa_svq_setup() 1254 VirtQueue *vq = virtio_get_queue(dev->vdev, dev->vq_index + i); in vhost_vdpa_svqs_start() 1257 .index = dev->vq_index + i, in vhost_vdpa_svqs_start() [all …]
|
H A D | vhost.c | 1029 idx = dev->vhost_ops->vhost_get_vq_index(dev, dev->vq_index + i); in vhost_dev_set_log() 1058 idx = dev->vhost_ops->vhost_get_vq_index(dev, dev->vq_index + i); in vhost_dev_set_log() 1449 dev->vq_index + index); in vhost_virtqueue_error_notifier() 1554 r = vhost_virtqueue_init(hdev, hdev->vqs + i, hdev->vq_index + i); in vhost_dev_init() 1563 r = vhost_virtqueue_set_busyloop_timeout(hdev, hdev->vq_index + i, in vhost_dev_init() 1651 vhost_virtqueue_set_busyloop_timeout(hdev, hdev->vq_index + i, 0); in vhost_dev_init() 1699 r = virtio_bus_set_host_notifier(VIRTIO_BUS(qbus), hdev->vq_index + i, in vhost_dev_disable_notifiers_nvqs() 1714 virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), hdev->vq_index + i); in vhost_dev_disable_notifiers_nvqs() 1743 r = virtio_bus_set_host_notifier(VIRTIO_BUS(qbus), hdev->vq_index + i, in vhost_dev_enable_notifiers() 1773 struct vhost_virtqueue *vq = hdev->vqs + n - hdev->vq_index; in vhost_virtqueue_pending() [all …]
|
H A D | vhost-backend.c | 226 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_kernel_get_vq_index() 228 return idx - dev->vq_index; in vhost_kernel_get_vq_index()
|
H A D | virtio-qmp.c | 786 status->vhost_dev->vq_index = hdev->vq_index; in qmp_x_query_virtio_status() 825 if (queue < hdev->vq_index || queue >= hdev->vq_index + hdev->nvqs) { in qmp_x_query_virtio_vhost_queue_status()
|
H A D | vhost-user.c | 400 && dev->vq_index != 0) { in vhost_user_write() 450 if (dev->vq_index != 0) { in vhost_user_set_log_base() 1088 if (vhost_user_per_device_request(request) && dev->vq_index != 0) { in vhost_user_get_u64() 1246 .index = dev->vq_index + i, in vhost_user_set_vring_enable() 2286 if (dev->vq_index == 0) { in vhost_user_backend_init() 2333 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_user_get_vq_index() 2855 if (dev->vq_index + dev->nvqs != dev->vq_index_end) { in vhost_user_dev_start() 2871 if (dev->vq_index + dev->nvqs != dev->vq_index_end) { in vhost_user_reset_status()
|
H A D | vdpa-dev.c | 105 v->dev.vq_index = 0; in vhost_vdpa_device_realize()
|
H A D | virtio-hmp-cmds.c | 161 s->vhost_dev->vq_index); in hmp_virtio_status()
|
H A D | virtio.c | 4205 if (queue >= hdev->vq_index && queue < hdev->vq_index + hdev->nvqs) { in qmp_x_query_virtio_queue_status()
|
/openbmc/qemu/backends/ |
H A D | cryptodev-vhost.c | 67 crypto->dev.vq_index = crypto->cc->queue_index * crypto->dev.nvqs; in cryptodev_vhost_init() 143 int vq_index) in cryptodev_vhost_set_vq_index() argument 145 crypto->dev.vq_index = vq_index; in cryptodev_vhost_set_vq_index()
|
H A D | vhost-user.c | 88 b->dev.vq_index + i, false); in vhost_user_backend_start()
|
/openbmc/qemu/include/net/ |
H A D | vhost_net.h | 51 int vq_index); 53 int vq_index);
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_net.h | 436 uint16_t vq_index; member 456 uint16_t vq_index; member
|
/openbmc/qemu/net/ |
H A D | vhost-vdpa.c | 404 int ret = vhost_vdpa_set_vring_ready(v, i + v->dev->vq_index); in vhost_vdpa_net_data_load() 424 if (dev->vq_index + dev->nvqs == dev->vq_index_end) { in vhost_vdpa_net_client_stop() 444 static int64_t vhost_vdpa_get_vring_group(int device_fd, unsigned vq_index, in vhost_vdpa_get_vring_group() argument 448 .index = vq_index, in vhost_vdpa_get_vring_group() 454 error_setg_errno(errp, errno, "Cannot get VQ %u group", vq_index); in vhost_vdpa_get_vring_group() 1246 r = vhost_vdpa_set_vring_ready(v, v->dev->vq_index); in vhost_vdpa_net_cvq_load() 1287 for (int i = 0; i < v->dev->vq_index; ++i) { in vhost_vdpa_net_cvq_load()
|
/openbmc/qemu/hw/scsi/ |
H A D | vhost-scsi-common.c | 92 vhost_virtqueue_mask(&vsc->dev, vdev, vsc->dev.vq_index + i, false); in vhost_scsi_common_start()
|
H A D | vhost-scsi.c | 277 vsc->dev.vq_index = 0; in vhost_scsi_realize()
|
H A D | vhost-user-scsi.c | 157 vsc->dev.vq_index = 0; in vhost_user_scsi_connect()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | vhost.h | 90 int vq_index; member
|
/openbmc/qemu/hw/block/ |
H A D | vhost-user-blk.c | 342 s->dev.vq_index = 0; in vhost_user_blk_connect()
|
/openbmc/qemu/qapi/ |
H A D | virtio.json | 80 # @vq-index: vhost_dev vq_index
|