| /openbmc/qemu/backends/ |
| H A D | vhost-user.c | 25 unsigned nvqs, Error **errp) in vhost_user_backend_dev_init() argument 36 b->dev.nvqs = nvqs; in vhost_user_backend_dev_init() 37 b->dev.vqs = g_new0(struct vhost_virtqueue, nvqs); in vhost_user_backend_dev_init() 69 ret = k->set_guest_notifiers(qbus->parent, b->dev.nvqs, true); in vhost_user_backend_start() 86 for (i = 0; i < b->dev.nvqs; i++) { in vhost_user_backend_start() 95 k->set_guest_notifiers(qbus->parent, b->dev.nvqs, false); in vhost_user_backend_start() 114 k->set_guest_notifiers(qbus->parent, b->dev.nvqs, false) < 0) { in vhost_user_backend_stop()
|
| H A D | cryptodev-vhost.c | 58 crypto->dev.nvqs = 1; in cryptodev_vhost_init() 67 crypto->dev.vq_index = crypto->cc->queue_index * crypto->dev.nvqs; in cryptodev_vhost_init() 88 crypto->dev.nvqs = 1; in cryptodev_vhost_start_one()
|
| /openbmc/qemu/hw/virtio/ |
| H A D | vhost-user-scmi.c | 53 ret = k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, true); in vu_scmi_start() 73 for (i = 0; i < scmi->vhost_dev.nvqs; i++) { in vu_scmi_start() 79 k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, false); in vu_scmi_start() 106 if (k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, false) < 0) { in vu_scmi_stop() 252 scmi->vhost_dev.nvqs = 2; in vu_scmi_device_realize() 253 scmi->vhost_dev.vqs = g_new0(struct vhost_virtqueue, scmi->vhost_dev.nvqs); in vu_scmi_device_realize()
|
| H A D | vhost-user-base.c | 38 ret = k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, true); in vub_start() 57 for (i = 0; i < vub->vhost_dev.nvqs; i++) { in vub_start() 64 k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false); in vub_start() 82 if (k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false) < 0) { in vub_stop() 328 vub->vhost_dev.nvqs = vub->num_vqs; in vub_device_realize() 329 vub->vhost_dev.vqs = g_new0(struct vhost_virtqueue, vub->vhost_dev.nvqs); in vub_device_realize()
|
| H A D | vhost-vsock-common.c | 67 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, true); in vhost_vsock_common_start() 85 for (i = 0; i < vvc->vhost_dev.nvqs; i++) { in vhost_vsock_common_start() 92 k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false); in vhost_vsock_common_start() 111 if (k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false) < 0) { in vhost_vsock_common_stop() 264 vvc->vhost_dev.nvqs = ARRAY_SIZE(vvc->vhost_vqs); in vhost_vsock_common_realize()
|
| H A D | vhost-user-fs.c | 73 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, true); in vuf_start() 91 for (i = 0; i < fs->vhost_dev.nvqs; i++) { in vuf_start() 98 k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false); in vuf_start() 116 if (k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false) < 0) { in vuf_stop() 256 fs->vhost_dev.nvqs = 1 + fs->conf.num_request_queues; in vuf_device_realize() 257 fs->vhost_dev.vqs = g_new0(struct vhost_virtqueue, fs->vhost_dev.nvqs); in vuf_device_realize()
|
| H A D | virtio-pci.c | 968 static int kvm_virtio_pci_vector_vq_use(VirtIOPCIProxy *proxy, int nvqs) in kvm_virtio_pci_vector_vq_use() argument 974 for (queue_no = 0; queue_no < nvqs; queue_no++) { in kvm_virtio_pci_vector_vq_use() 1011 static void kvm_virtio_pci_vector_vq_release(VirtIOPCIProxy *proxy, int nvqs) in kvm_virtio_pci_vector_vq_release() argument 1016 for (queue_no = 0; queue_no < nvqs; queue_no++) { in kvm_virtio_pci_vector_vq_release() 1270 static int virtio_pci_set_guest_notifiers(DeviceState *d, int nvqs, bool assign) in virtio_pci_set_guest_notifiers() argument 1279 nvqs = MIN(nvqs, VIRTIO_QUEUE_MAX); in virtio_pci_set_guest_notifiers() 1289 assert(assign || nvqs == proxy->nvqs_with_notifiers); in virtio_pci_set_guest_notifiers() 1291 proxy->nvqs_with_notifiers = nvqs; in virtio_pci_set_guest_notifiers() 1299 kvm_virtio_pci_vector_vq_release(proxy, nvqs); in virtio_pci_set_guest_notifiers() 1306 for (n = 0; n < nvqs; n++) { in virtio_pci_set_guest_notifiers() [all …]
|
| H A D | vhost-vdpa.c | 574 return dev->vq_index + dev->nvqs == dev->vq_index_end; in vhost_vdpa_last_dev() 591 shadow_vqs = g_ptr_array_new_full(hdev->nvqs, vhost_svq_free); in vhost_vdpa_init_svq() 592 for (unsigned n = 0; n < hdev->nvqs; ++n) { in vhost_vdpa_init_svq() 778 for (i = dev->vq_index; i < dev->vq_index + dev->nvqs; i++) { in vhost_vdpa_host_notifiers_init() 810 vhost_vdpa_host_notifiers_uninit(dev, dev->nvqs); in vhost_vdpa_cleanup() 914 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_vdpa_get_vq_index() 940 for (i = 0; i < dev->nvqs; ++i) { in vhost_vdpa_set_vring_enable() 1380 vhost_vdpa_host_notifiers_uninit(dev, dev->nvqs); in vhost_vdpa_dev_start()
|
| /openbmc/qemu/hw/scsi/ |
| H A D | vhost-scsi-common.c | 49 ret = k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, true); in vhost_scsi_common_start() 91 for (i = 0; i < vsc->dev.nvqs; i++) { in vhost_scsi_common_start() 98 k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, false); in vhost_scsi_common_start() 114 int r = k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, false); in vhost_scsi_common_stop()
|
| H A D | vhost-user-scsi.c | 136 for (i = 0; i < vsc->dev.nvqs; i++) { in vhost_user_scsi_handle_output() 159 vsc->dev.nvqs = VIRTIO_SCSI_VQ_NUM_FIXED + vs->conf.num_queues; in vhost_user_scsi_connect()
|
| /openbmc/qemu/hw/block/ |
| H A D | vhost-user-blk.c | 151 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, true); in vhost_user_blk_start() 183 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_start() 187 s->dev.vq_index_end = s->dev.nvqs; in vhost_user_blk_start() 198 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_start() 201 k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_user_blk_start() 230 if (k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false) < 0) { in vhost_user_blk_stop() 320 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_handle_output() 348 s->dev.nvqs = s->num_queues; in vhost_user_blk_connect()
|
| /openbmc/u-boot/test/dm/ |
| H A D | virtio.c | 43 uint offset = 0, len = 0, nvqs = 1; in dm_test_virtio_all_ops() local 76 ut_assertok(virtio_find_vqs(dev, nvqs, vqs)); in dm_test_virtio_all_ops()
|
| /openbmc/u-boot/drivers/virtio/ |
| H A D | virtio_sandbox.c | 134 static int virtio_sandbox_find_vqs(struct udevice *udev, unsigned int nvqs, in virtio_sandbox_find_vqs() argument 139 for (i = 0; i < nvqs; ++i) { in virtio_sandbox_find_vqs()
|
| H A D | virtio-uclass.c | 105 int virtio_find_vqs(struct udevice *vdev, unsigned int nvqs, in virtio_find_vqs() argument 112 return ops->find_vqs(vdev->parent, nvqs, vqs); in virtio_find_vqs()
|
| H A D | virtio_pci_legacy.c | 249 static int virtio_pci_find_vqs(struct udevice *udev, unsigned int nvqs, in virtio_pci_find_vqs() argument 254 for (i = 0; i < nvqs; ++i) { in virtio_pci_find_vqs()
|
| H A D | virtio_mmio.c | 305 static int virtio_mmio_find_vqs(struct udevice *udev, unsigned int nvqs, in virtio_mmio_find_vqs() argument 310 for (i = 0; i < nvqs; ++i) { in virtio_mmio_find_vqs()
|
| H A D | virtio_pci_modern.c | 336 static int virtio_pci_find_vqs(struct udevice *udev, unsigned int nvqs, in virtio_pci_find_vqs() argument 341 for (i = 0; i < nvqs; ++i) { in virtio_pci_find_vqs()
|
| /openbmc/qemu/include/hw/virtio/ |
| H A D | virtio-bus.h | 52 int (*set_guest_notifiers)(DeviceState *d, int nvqs, bool assign);
|
| /openbmc/u-boot/include/ |
| H A D | virtio.h | 170 int (*find_vqs)(struct udevice *vdev, unsigned int nvqs, 303 int virtio_find_vqs(struct udevice *vdev, unsigned int nvqs,
|
| /openbmc/qemu/net/ |
| H A D | vhost-vdpa.c | 190 int queue_pair_index, int nvqs) in vhost_vdpa_add() argument 203 options.nvqs = nvqs; in vhost_vdpa_add() 427 for (int i = 0; i < v->dev->nvqs; ++i) { in vhost_vdpa_net_data_load() 1684 int nvqs, in net_vhost_vdpa_init() argument 1744 ret = vhost_vdpa_add(nc, (void *)&s->vhost_vdpa, queue_pair_index, nvqs); in net_vhost_vdpa_init()
|