/openbmc/qemu/hw/net/ |
H A D | vhost_net.c | 203 net->dev.vq_index = net->nc->queue_index * net->dev.nvqs; in vhost_net_init() 249 static void vhost_net_set_vq_index(struct vhost_net *net, int vq_index, in vhost_net_set_vq_index() argument 252 net->dev.vq_index = vq_index; in vhost_net_set_vq_index() 287 if (!virtio_queue_enabled(dev, net->dev.vq_index + in vhost_net_start_one() 311 if (!virtio_queue_enabled(dev, net->dev.vq_index + in vhost_net_start_one() 565 int vq_index) in vhost_net_virtqueue_reset() argument 575 idx = vhost_ops->vhost_get_vq_index(&net->dev, vq_index); in vhost_net_virtqueue_reset() 586 net->dev.vq_index + idx); in vhost_net_virtqueue_reset() 590 int vq_index) in vhost_net_virtqueue_restart() argument 604 idx = vhost_ops->vhost_get_vq_index(&net->dev, vq_index); in vhost_net_virtqueue_restart() [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 | 698 for (i = dev->vq_index; i < dev->vq_index + n; i++) { in vhost_vdpa_host_notifiers_uninit() 722 for (i = dev->vq_index; i < dev->vq_index + dev->nvqs; i++) { in vhost_vdpa_host_notifiers_init() 879 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_vdpa_get_vq_index() 1010 .index = dev->vq_index + idx, in vhost_vdpa_svq_set_fds() 1181 uint16_t vq_index = dev->vq_index + idx; in vhost_vdpa_svq_setup() local 1183 .index = vq_index, in vhost_vdpa_svq_setup() 1211 .index = dev->vq_index + i, in vhost_vdpa_svqs_start() 1312 if (dev->vq_index + dev->nvqs != dev->vq_index_end) { in vhost_vdpa_dev_start() 1334 if (dev->vq_index + dev->nvqs != dev->vq_index_end) { in vhost_vdpa_reset_status() 1424 int vdpa_idx = file->index - dev->vq_index; in vhost_vdpa_set_vring_kick() [all …]
|
H A D | vhost.c | 964 idx = dev->vhost_ops->vhost_get_vq_index(dev, dev->vq_index + i); in vhost_dev_set_log() 984 idx = dev->vhost_ops->vhost_get_vq_index(dev, dev->vq_index + i); in vhost_dev_set_log() 1374 dev->vq_index + index); in vhost_virtqueue_error_notifier() 1479 r = vhost_virtqueue_init(hdev, hdev->vqs + i, hdev->vq_index + i); in vhost_dev_init() 1488 r = vhost_virtqueue_set_busyloop_timeout(hdev, hdev->vq_index + i, in vhost_dev_init() 1698 struct vhost_virtqueue *vq = hdev->vqs + n - hdev->vq_index; in vhost_virtqueue_pending() 1699 assert(n >= hdev->vq_index && n < hdev->vq_index + hdev->nvqs); in vhost_virtqueue_pending() 1708 int r, index = n - hdev->vq_index; in vhost_virtqueue_mask() 2019 hdev->vq_index + i); in vhost_dev_start() 2087 hdev->vq_index + i); in vhost_dev_start() [all …]
|
H A D | vhost-backend.c | 202 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_kernel_get_vq_index() 204 return idx - dev->vq_index; in vhost_kernel_get_vq_index()
|
H A D | virtio-qmp.c | 777 status->vhost_dev->vq_index = hdev->vq_index; in qmp_x_query_virtio_status() 816 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() 1228 .index = dev->vq_index + i, in vhost_user_set_vring_enable() 2248 if (dev->vq_index == 0) { in vhost_user_backend_init() 2295 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_user_get_vq_index() 2841 if (dev->vq_index + dev->nvqs != dev->vq_index_end) { in vhost_user_dev_start() 2857 if (dev->vq_index + dev->nvqs != dev->vq_index_end) { in vhost_user_reset_status()
|
H A D | virtio-hmp-cmds.c | 161 s->vhost_dev->vq_index); in hmp_virtio_status()
|
H A D | vdpa-dev.c | 106 v->dev.vq_index = 0; in vhost_vdpa_device_realize()
|
H A D | virtio.c | 3960 if (queue >= hdev->vq_index && queue < hdev->vq_index + hdev->nvqs) { in qmp_x_query_virtio_queue_status()
|
/openbmc/qemu/include/net/ |
H A D | vhost_net.h | 54 int vq_index); 56 int vq_index);
|
/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/net/ |
H A D | vhost-vdpa.c | 398 vhost_vdpa_set_vring_ready(v, i + v->dev->vq_index); in vhost_vdpa_net_data_load() 415 if (dev->vq_index + dev->nvqs == dev->vq_index_end) { in vhost_vdpa_net_client_stop() 436 static int64_t vhost_vdpa_get_vring_group(int device_fd, unsigned vq_index, in vhost_vdpa_get_vring_group() argument 440 .index = vq_index, in vhost_vdpa_get_vring_group() 446 error_setg_errno(errp, errno, "Cannot get VQ %u group", vq_index); in vhost_vdpa_get_vring_group() 1234 vhost_vdpa_set_vring_ready(v, v->dev->vq_index); in vhost_vdpa_net_cvq_load() 1272 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 | 221 vsc->dev.vq_index = 0; in vhost_scsi_realize()
|
H A D | vhost-user-scsi.c | 154 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 | 333 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
|