/qemu/hw/virtio/ |
H A D | virtio-mmio.c | 79 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 D | virtio-qmp.c | 823 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 D | virtio-pci.c | 1405 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 D | vdpa-dev.c | 57 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 D | vhost-user-base.c | 186 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 D | vhost.c | 177 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 D | virtio-crypto.c | 978 &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 D | vhost-user-fs.c | 251 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 D | vhost-user-scmi.c | 221 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 D | vhost-vsock-common.c | 264 vvc->vhost_dev.vqs = vvc->vhost_vqs; in vhost_vsock_common_realize()
|
/qemu/hw/scsi/ |
H A D | vhost-scsi.c | 229 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 D | libvduse.c | 122 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 D | cryptodev-vhost.c | 59 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_init() 89 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_start_one()
|
H A D | vhost-user.c | 37 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 D | vhost-user-base.h | 32 GPtrArray *vqs; member
|
H A D | vhost.h | 87 struct vhost_virtqueue *vqs; member 143 struct vhost_virtqueue vqs[2]; member
|
H A D | virtio-mmio.h | 72 VirtIOMMIOQueue vqs[VIRTIO_QUEUE_MAX]; member
|
H A D | virtio-crypto.h | 88 VirtIOCryptoQueue *vqs; member
|
H A D | virtio-pci.h | 161 VirtIOPCIQueue vqs[VIRTIO_QUEUE_MAX]; member
|
H A D | virtio-net.h | 170 VirtIONetQueue *vqs; member
|
/qemu/include/sysemu/ |
H A D | cryptodev-vhost.h | 43 struct vhost_virtqueue vqs[1]; member
|
/qemu/hw/net/ |
H A D | vhost_net.c | 186 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 D | virtio-net.c | 118 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 D | virtio.json | 135 # @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 D | virtio-blk.c | 1565 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()
|