Home
last modified time | relevance | path

Searched refs:vqs (Results 1 – 25 of 27) sorted by relevance

12

/qemu/hw/virtio/
H A Dvirtio-mmio.c79 proxy->vqs[i].enabled = 0; in virtio_mmio_soft_reset()
196 return proxy->vqs[vdev->queue_sel].enabled; in virtio_mmio_read()
358 proxy->vqs[vdev->queue_sel].num = value; in virtio_mmio_write()
399 proxy->vqs[vdev->queue_sel].desc[0], in virtio_mmio_write()
404 proxy->vqs[vdev->queue_sel].enabled = 1; in virtio_mmio_write()
406 proxy->vqs[vdev->queue_sel].enabled = 0; in virtio_mmio_write()
447 proxy->vqs[vdev->queue_sel].desc[0] = value; in virtio_mmio_write()
640 proxy->vqs[i].num = 0; in virtio_mmio_reset()
641 proxy->vqs[i].desc[0] = proxy->vqs[i].desc[1] = 0; in virtio_mmio_reset()
642 proxy->vqs[i].avail[0] = proxy->vqs[i].avail[1] = 0; in virtio_mmio_reset()
[all …]
H A Dvirtio-qmp.c823 status->kick = hdev->vqs[queue].kick; in qmp_x_query_virtio_vhost_queue_status()
824 status->call = hdev->vqs[queue].call; in qmp_x_query_virtio_vhost_queue_status()
825 status->desc = (uintptr_t)hdev->vqs[queue].desc; in qmp_x_query_virtio_vhost_queue_status()
827 status->used = (uintptr_t)hdev->vqs[queue].used; in qmp_x_query_virtio_vhost_queue_status()
828 status->num = hdev->vqs[queue].num; in qmp_x_query_virtio_vhost_queue_status()
829 status->desc_phys = hdev->vqs[queue].desc_phys; in qmp_x_query_virtio_vhost_queue_status()
830 status->desc_size = hdev->vqs[queue].desc_size; in qmp_x_query_virtio_vhost_queue_status()
831 status->avail_phys = hdev->vqs[queue].avail_phys; in qmp_x_query_virtio_vhost_queue_status()
832 status->avail_size = hdev->vqs[queue].avail_size; in qmp_x_query_virtio_vhost_queue_status()
833 status->used_phys = hdev->vqs[queue].used_phys; in qmp_x_query_virtio_vhost_queue_status()
[all …]
H A Dvirtio-pci.c1405 return proxy->vqs[n].enabled; in virtio_pci_queue_enabled()
1535 val = proxy->vqs[vdev->queue_sel].enabled; in virtio_pci_common_read()
1542 val = proxy->vqs[vdev->queue_sel].desc[0]; in virtio_pci_common_read()
1560 val = proxy->vqs[vdev->queue_sel].reset; in virtio_pci_common_read()
1630 proxy->vqs[vdev->queue_sel].num = val; in virtio_pci_common_write()
2286 proxy->vqs[i].enabled = 0; in virtio_pci_reset()
2287 proxy->vqs[i].reset = 0; in virtio_pci_reset()
2288 proxy->vqs[i].num = 0; in virtio_pci_reset()
2289 proxy->vqs[i].desc[0] = proxy->vqs[i].desc[1] = 0; in virtio_pci_reset()
2290 proxy->vqs[i].avail[0] = proxy->vqs[i].avail[1] = 0; in virtio_pci_reset()
[all …]
H A Dvdpa-dev.c57 struct vhost_virtqueue *vqs; in vhost_vdpa_device_realize() local
103 vqs = g_new0(struct vhost_virtqueue, v->dev.nvqs); in vhost_vdpa_device_realize()
104 v->dev.vqs = vqs; in vhost_vdpa_device_realize()
165 g_free(vqs); in vhost_vdpa_device_realize()
187 g_free(s->dev.vqs); in vhost_vdpa_device_unrealize()
H A Dvhost-user-base.c186 VirtQueue *vq = g_ptr_array_index(vub->vqs, i); in do_vhost_user_cleanup()
313 vub->vqs = g_ptr_array_sized_new(vub->num_vqs); in vub_device_realize()
315 g_ptr_array_add(vub->vqs, in vub_device_realize()
321 vub->vhost_dev.vqs = g_new0(struct vhost_virtqueue, vub->vhost_dev.nvqs); in vub_device_realize()
339 struct vhost_virtqueue *vhost_vqs = vub->vhost_dev.vqs; in vub_device_unrealize()
H A Dvhost.c177 struct vhost_virtqueue *vq = dev->vqs + i; in vhost_sync_dirty_bitmap()
459 struct vhost_virtqueue *vq = dev->vqs + i; in vhost_verify_ring_mappings()
975 r = vhost_virtqueue_set_addr(dev, dev->vqs + i, idx, in vhost_dev_set_log()
989 vhost_virtqueue_set_addr(dev, dev->vqs + i, idx, in vhost_dev_set_log()
1371 int index = vq - dev->vqs; in vhost_virtqueue_error_notifier()
1593 vhost_virtqueue_cleanup(hdev->vqs + i); in vhost_dev_cleanup()
1699 struct vhost_virtqueue *vq = hdev->vqs + n - hdev->vq_index; in vhost_virtqueue_pending()
2025 hdev->vqs + i, in vhost_dev_start()
2077 struct vhost_virtqueue *vq = hdev->vqs + i; in vhost_dev_start()
2093 hdev->vqs + i, in vhost_dev_start()
[all …]
H A Dvirtio-crypto.c978 &vcrypto->vqs[virtio_crypto_vq2q(virtio_get_queue_index(vq))]; in virtio_crypto_handle_dataq_bh()
1078 vcrypto->vqs = g_new0(VirtIOCryptoQueue, vcrypto->max_queues); in virtio_crypto_device_realize()
1080 vcrypto->vqs[i].dataq = in virtio_crypto_device_realize()
1082 vcrypto->vqs[i].dataq_bh = in virtio_crypto_device_realize()
1084 &vcrypto->vqs[i]); in virtio_crypto_device_realize()
1085 vcrypto->vqs[i].vcrypto = vcrypto; in virtio_crypto_device_realize()
1108 virtio_delete_queue(vcrypto->vqs[i].dataq); in virtio_crypto_device_unrealize()
1109 q = &vcrypto->vqs[i]; in virtio_crypto_device_unrealize()
1113 g_free(vcrypto->vqs); in virtio_crypto_device_unrealize()
H A Dvhost-user-fs.c251 fs->vhost_dev.vqs = g_new0(struct vhost_virtqueue, fs->vhost_dev.nvqs); in vuf_device_realize()
268 g_free(fs->vhost_dev.vqs); in vuf_device_realize()
276 struct vhost_virtqueue *vhost_vqs = fs->vhost_dev.vqs; in vuf_device_unrealize()
H A Dvhost-user-scmi.c221 g_free(scmi->vhost_dev.vqs); in do_vhost_user_cleanup()
248 scmi->vhost_dev.vqs = g_new0(struct vhost_virtqueue, scmi->vhost_dev.nvqs); in vu_scmi_device_realize()
H A Dvhost-vsock-common.c264 vvc->vhost_dev.vqs = vvc->vhost_vqs; in vhost_vsock_common_realize()
/qemu/hw/scsi/
H A Dvhost-scsi.c229 struct vhost_virtqueue *vqs = NULL; in vhost_scsi_realize() local
273 vqs = g_new0(struct vhost_virtqueue, vsc->dev.nvqs); in vhost_scsi_realize()
274 vsc->dev.vqs = vqs; in vhost_scsi_realize()
305 g_free(vqs); in vhost_scsi_realize()
322 struct vhost_virtqueue *vqs = vsc->dev.vqs; in vhost_scsi_unrealize() local
332 g_free(vqs); in vhost_scsi_unrealize()
/qemu/subprojects/libvduse/
H A Dlibvduse.c122 VduseVirtq *vqs; member
202 return &dev->vqs[index]; in vduse_dev_get_queue()
1034 vq = &dev->vqs[i]; in vduse_dev_handler()
1124 dev->vqs[i].log = log; in vduse_set_reconnect_log_file()
1134 VduseVirtq *vqs; in vduse_dev_init_vqs() local
1138 if (!vqs) { in vduse_dev_init_vqs()
1143 vqs[i].index = i; in vduse_dev_init_vqs()
1144 vqs[i].dev = dev; in vduse_dev_init_vqs()
1145 vqs[i].fd = -1; in vduse_dev_init_vqs()
1147 dev->vqs = vqs; in vduse_dev_init_vqs()
[all …]
/qemu/backends/
H A Dcryptodev-vhost.c59 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_init()
89 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_start_one()
H A Dvhost-user.c37 b->dev.vqs = g_new0(struct vhost_virtqueue, nvqs); in vhost_user_backend_dev_init()
175 g_free(b->dev.vqs); in vhost_user_backend_finalize()
/qemu/include/hw/virtio/
H A Dvhost-user-base.h32 GPtrArray *vqs; member
H A Dvhost.h87 struct vhost_virtqueue *vqs; member
143 struct vhost_virtqueue vqs[2]; member
H A Dvirtio-mmio.h72 VirtIOMMIOQueue vqs[VIRTIO_QUEUE_MAX]; member
H A Dvirtio-crypto.h88 VirtIOCryptoQueue *vqs; member
H A Dvirtio-pci.h161 VirtIOPCIQueue vqs[VIRTIO_QUEUE_MAX]; member
H A Dvirtio-net.h170 VirtIONetQueue *vqs; member
/qemu/include/sysemu/
H A Dcryptodev-vhost.h43 struct vhost_virtqueue vqs[1]; member
/qemu/hw/net/
H A Dvhost_net.c186 net->dev.vqs = net->vqs; in vhost_net_init()
595 net->dev.vqs + idx, in vhost_net_virtqueue_reset()
618 net->dev.vqs + idx, in vhost_net_virtqueue_restart()
H A Dvirtio-net.c118 return &n->vqs[nc->queue_index]; in virtio_net_get_subqueue()
396 q = &n->vqs[i]; in virtio_net_set_status()
2980 n->vqs[index].tx_vq = in virtio_net_add_queue()
2987 n->vqs[index].tx_vq = in virtio_net_add_queue()
2990 n->vqs[index].tx_bh = qemu_bh_new_guarded(virtio_net_tx_bh, &n->vqs[index], in virtio_net_add_queue()
2994 n->vqs[index].tx_waiting = 0; in virtio_net_add_queue()
2995 n->vqs[index].n = n; in virtio_net_add_queue()
3001 VirtIONetQueue *q = &n->vqs[index]; in virtio_net_del_queue()
3213 tmp->vqs_1 = tmp->parent->vqs + 1; in virtio_net_tx_waiting_pre_save()
3791 n->vqs[0].tx_waiting = 0; in virtio_net_device_realize()
[all …]
/qemu/qapi/
H A Dvirtio.json135 # @num-vqs: VirtIODevice virtqueue count. This is the number of
176 'num-vqs': 'int',
941 # @vqs: an optional array of virtqueue indices that will be handled by
944 # IOThreadVirtQueueMappings must have @vqs or none of them must
951 'data': { 'iothread': 'str', '*vqs': ['uint16'] } }
/qemu/hw/block/
H A Dvirtio-blk.c1565 g_autofree unsigned long *vqs = bitmap_new(num_queues); in validate_iothread_vq_mapping_list() local
1586 if (!!node->value->vqs != !!list->value->vqs) { in validate_iothread_vq_mapping_list()
1593 for (vq = node->value->vqs; vq; vq = vq->next) { in validate_iothread_vq_mapping_list()
1601 if (test_and_set_bit(vq->value, vqs)) { in validate_iothread_vq_mapping_list()
1609 if (list->value->vqs) { in validate_iothread_vq_mapping_list()
1611 if (!test_bit(i, vqs)) { in validate_iothread_vq_mapping_list()
1661 if (node->value->vqs) { in apply_iothread_vq_mapping()
1665 for (vq = node->value->vqs; vq; vq = vq->next) { in apply_iothread_vq_mapping()

12