/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() 115 b->dev.nvqs, false); 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()
|
/qemu/hw/virtio/ |
H A D | vdpa-dev.c | 102 v->dev.nvqs = v->num_queues; in vhost_vdpa_device_realize() 103 vqs = g_new0(struct vhost_virtqueue, v->dev.nvqs); in vhost_vdpa_device_realize() 106 v->dev.vq_index_end = v->dev.nvqs; in vhost_vdpa_device_realize() 152 v->virtqs = g_new0(VirtQueue *, v->dev.nvqs); in vhost_vdpa_device_realize() 153 for (i = 0; i < v->dev.nvqs; i++) { in vhost_vdpa_device_realize() 255 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, true); in vhost_vdpa_device_start() 275 for (i = 0; i < s->dev.nvqs; i++) { in vhost_vdpa_device_start() 282 k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_vdpa_device_start() 306 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_vdpa_device_stop()
|
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 ret = k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, false); in vu_scmi_stop() 247 scmi->vhost_dev.nvqs = 2; in vu_scmi_device_realize() 248 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 ret = k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false); in vub_stop() 320 vub->vhost_dev.nvqs = vub->num_vqs; in vub_device_realize() 321 vub->vhost_dev.vqs = g_new0(struct vhost_virtqueue, vub->vhost_dev.nvqs); in vub_device_realize()
|
H A D | vhost-vsock-common.c | 66 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, true); in vhost_vsock_common_start() 84 for (i = 0; i < vvc->vhost_dev.nvqs; i++) { in vhost_vsock_common_start() 91 k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false); in vhost_vsock_common_start() 110 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false); in vhost_vsock_common_stop() 263 vvc->vhost_dev.nvqs = ARRAY_SIZE(vvc->vhost_vqs); in vhost_vsock_common_realize()
|
H A D | vhost-user-fs.c | 72 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, true); in vuf_start() 90 for (i = 0; i < fs->vhost_dev.nvqs; i++) { in vuf_start() 97 k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false); in vuf_start() 115 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false); in vuf_stop() 250 fs->vhost_dev.nvqs = 1 + fs->conf.num_request_queues; in vuf_device_realize() 251 fs->vhost_dev.vqs = g_new0(struct vhost_virtqueue, fs->vhost_dev.nvqs); in vuf_device_realize()
|
H A D | vhost.c | 176 for (i = 0; i < dev->nvqs; ++i) { in vhost_sync_dirty_bitmap() 458 for (i = 0; i < dev->nvqs; ++i) { in vhost_verify_ring_mappings() 963 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_set_log() 1488 for (i = 0; i < hdev->nvqs; ++i) { in vhost_dev_init() 1581 hdev->nvqs = n_initialized_vqs; in vhost_dev_init() 1592 for (i = 0; i < hdev->nvqs; ++i) { in vhost_dev_cleanup() 1624 for (i = 0; i < nvqs; ++i) { in vhost_dev_disable_notifiers_nvqs() 1639 for (i = 0; i < nvqs; ++i) { in vhost_dev_disable_notifiers_nvqs() 1668 for (i = 0; i < hdev->nvqs; ++i) { in vhost_dev_enable_notifiers() 2022 for (i = 0; i < hdev->nvqs; ++i) { in vhost_dev_start() [all …]
|
H A D | virtio-pci.c | 925 static int kvm_virtio_pci_vector_vq_use(VirtIOPCIProxy *proxy, int nvqs) in kvm_virtio_pci_vector_vq_use() argument 931 for (queue_no = 0; queue_no < nvqs; queue_no++) { in kvm_virtio_pci_vector_vq_use() 968 static void kvm_virtio_pci_vector_vq_release(VirtIOPCIProxy *proxy, int nvqs) in kvm_virtio_pci_vector_vq_release() argument 973 for (queue_no = 0; queue_no < nvqs; queue_no++) { in kvm_virtio_pci_vector_vq_release() 1231 nvqs = MIN(nvqs, VIRTIO_QUEUE_MAX); in virtio_pci_set_guest_notifiers() 1241 assert(assign || nvqs == proxy->nvqs_with_notifiers); in virtio_pci_set_guest_notifiers() 1243 proxy->nvqs_with_notifiers = nvqs; in virtio_pci_set_guest_notifiers() 1251 kvm_virtio_pci_vector_vq_release(proxy, nvqs); in virtio_pci_set_guest_notifiers() 1258 for (n = 0; n < nvqs; n++) { in virtio_pci_set_guest_notifiers() 1281 r = kvm_virtio_pci_vector_vq_use(proxy, nvqs); in virtio_pci_set_guest_notifiers() [all …]
|
H A D | vhost-vdpa.c | 565 return dev->vq_index + dev->nvqs == dev->vq_index_end; in vhost_vdpa_last_dev() 582 shadow_vqs = g_ptr_array_new_full(hdev->nvqs, vhost_svq_free); in vhost_vdpa_init_svq() 583 for (unsigned n = 0; n < hdev->nvqs; ++n) { in vhost_vdpa_init_svq() 733 for (i = dev->vq_index; i < dev->vq_index + dev->nvqs; i++) { in vhost_vdpa_host_notifiers_init() 765 vhost_vdpa_host_notifiers_uninit(dev, dev->nvqs); in vhost_vdpa_cleanup() 893 assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); in vhost_vdpa_get_vq_index() 919 for (i = 0; i < dev->nvqs; ++i) { in vhost_vdpa_set_vring_enable() 1350 vhost_vdpa_host_notifiers_uninit(dev, dev->nvqs); in vhost_vdpa_dev_start()
|
H A D | virtio-mmio.c | 698 static int virtio_mmio_set_guest_notifiers(DeviceState *d, int nvqs, in virtio_mmio_set_guest_notifiers() argument 707 nvqs = MIN(nvqs, VIRTIO_QUEUE_MAX); in virtio_mmio_set_guest_notifiers() 709 for (n = 0; n < nvqs; n++) { in virtio_mmio_set_guest_notifiers()
|
H A D | virtio-qmp.c | 776 status->vhost_dev->nvqs = hdev->nvqs; 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()
|
/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 ret = k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, false); in vhost_scsi_common_stop()
|
H A D | vhost-scsi.c | 176 if (!per_virtqueue || dev->nvqs == VHOST_SCSI_VQ_NUM_FIXED + 1) { in vhost_scsi_set_workers() 184 for (i = VHOST_SCSI_VQ_NUM_FIXED + 1; i < dev->nvqs; i++) { in vhost_scsi_set_workers() 272 vsc->dev.nvqs = VHOST_SCSI_VQ_NUM_FIXED + vs->conf.num_queues; in vhost_scsi_realize() 273 vqs = g_new0(struct vhost_virtqueue, vsc->dev.nvqs); in vhost_scsi_realize()
|
H A D | vhost-user-scsi.c | 130 for (i = 0; i < vsc->dev.nvqs; i++) { in vhost_user_scsi_handle_output() 153 vsc->dev.nvqs = VIRTIO_SCSI_VQ_NUM_FIXED + vs->conf.num_queues; in vhost_user_scsi_connect()
|
/qemu/hw/block/ |
H A D | vhost-user-blk.c | 137 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, true); in vhost_user_blk_start() 169 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_start() 173 s->dev.vq_index_end = s->dev.nvqs; in vhost_user_blk_start() 184 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_start() 187 k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_user_blk_start() 211 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_user_blk_stop() 298 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_handle_output() 326 s->dev.nvqs = s->num_queues; in vhost_user_blk_connect()
|
H A D | virtio-blk.c | 1469 unsigned nvqs = s->conf.num_queues; in virtio_blk_load_device() local 1473 if (nvqs > 1) { in virtio_blk_load_device() 1476 if (vq_idx >= nvqs) { in virtio_blk_load_device() 1781 unsigned nvqs = s->conf.num_queues; in virtio_blk_start_ioeventfd() local 1806 for (i = 0; i < nvqs; i++) { in virtio_blk_start_ioeventfd() 1866 k->set_guest_notifiers(qbus->parent, nvqs, false); in virtio_blk_start_ioeventfd() 1898 unsigned nvqs = s->conf.num_queues; in virtio_blk_stop_ioeventfd() local 1913 for (i = 0; i < nvqs; i++) { in virtio_blk_stop_ioeventfd() 1927 for (i = 0; i < nvqs; i++) { in virtio_blk_stop_ioeventfd() 1937 for (i = 0; i < nvqs; i++) { in virtio_blk_stop_ioeventfd() [all …]
|
/qemu/hw/net/ |
H A D | vhost_net.c | 183 net->dev.nvqs = options->nvqs; in vhost_net_init() 203 net->dev.vq_index = net->nc->queue_index * net->dev.nvqs; in vhost_net_init() 286 for (file.index = 0; file.index < net->dev.nvqs; ++file.index) { in vhost_net_start_one() 336 for (file.index = 0; file.index < net->dev.nvqs; ++file.index) { in vhost_net_stop_one()
|
/qemu/include/sysemu/ |
H A D | vhost-user-backend.h | 44 unsigned nvqs, Error **errp);
|
/qemu/hw/s390x/ |
H A D | virtio-ccw.c | 968 static int virtio_ccw_setup_irqroutes(VirtioCcwDevice *dev, int nvqs) in virtio_ccw_setup_irqroutes() argument 980 for (i = 0; i < nvqs; i++) { in virtio_ccw_setup_irqroutes() 989 static void virtio_ccw_release_irqroutes(VirtioCcwDevice *dev, int nvqs) in virtio_ccw_release_irqroutes() argument 1067 static int virtio_ccw_set_guest_notifiers(DeviceState *d, int nvqs, in virtio_ccw_set_guest_notifiers() argument 1078 r = virtio_ccw_setup_irqroutes(dev, nvqs); in virtio_ccw_set_guest_notifiers() 1083 for (n = 0; n < nvqs; n++) { in virtio_ccw_set_guest_notifiers() 1094 virtio_ccw_release_irqroutes(dev, nvqs); in virtio_ccw_set_guest_notifiers() 1104 virtio_ccw_release_irqroutes(dev, nvqs); in virtio_ccw_set_guest_notifiers()
|
/qemu/include/net/ |
H A D | vhost_net.h | 14 unsigned int nvqs; member
|
/qemu/net/ |
H A D | vhost-vdpa.c | 187 int queue_pair_index, int nvqs) in vhost_vdpa_add() argument 200 options.nvqs = nvqs; in vhost_vdpa_add() 401 for (int i = 0; i < v->dev->nvqs; ++i) { in vhost_vdpa_net_data_load() 419 if (dev->vq_index + dev->nvqs == dev->vq_index_end) { in vhost_vdpa_net_client_stop() 1665 int nvqs, in net_vhost_vdpa_init() argument 1723 ret = vhost_vdpa_add(nc, (void *)&s->vhost_vdpa, queue_pair_index, nvqs); in net_vhost_vdpa_init()
|
/qemu/include/hw/virtio/ |
H A D | virtio-bus.h | 52 int (*set_guest_notifiers)(DeviceState *d, int nvqs, bool assign);
|
H A D | vhost.h | 88 unsigned int nvqs; member
|
/qemu/qapi/ |
H A D | virtio.json | 78 # @nvqs: vhost_dev nvqs (number of virtqueues being used) 103 'nvqs': 'uint32',
|