Lines Matching refs:num_queues
1061 uint16_t num_queues = s->conf.num_queues; in virtio_blk_dma_restart_cb() local
1070 vq_rq = g_new0(VirtIOBlockReq *, num_queues); in virtio_blk_dma_restart_cb()
1082 assert(idx < num_queues); in virtio_blk_dma_restart_cb()
1089 for (uint16_t i = 0; i < num_queues; i++) { in virtio_blk_dma_restart_cb()
1174 virtio_stw_p(vdev, &blkcfg.num_queues, s->conf.num_queues); in virtio_blk_update_config()
1260 if (s->conf.num_queues > 1) { in virtio_blk_get_features()
1311 if (s->conf.num_queues > 1) { in virtio_blk_save_device()
1329 unsigned nvqs = s->conf.num_queues; in virtio_blk_load_device()
1379 for (uint16_t i = 0; i < s->conf.num_queues; i++) { in virtio_blk_ioeventfd_detach()
1389 for (uint16_t i = 0; i < s->conf.num_queues; i++) { in virtio_blk_ioeventfd_attach()
1423 uint16_t num_queues, Error **errp) in validate_iothread_vq_mapping_list() argument
1425 g_autofree unsigned long *vqs = bitmap_new(num_queues); in validate_iothread_vq_mapping_list()
1454 if (vq->value >= num_queues) { in validate_iothread_vq_mapping_list()
1457 vq->value, name, num_queues); in validate_iothread_vq_mapping_list()
1470 for (uint16_t i = 0; i < num_queues; i++) { in validate_iothread_vq_mapping_list()
1498 uint16_t num_queues, in apply_iothread_vq_mapping() argument
1506 num_queues, errp)) { in apply_iothread_vq_mapping()
1526 assert(vq->value < num_queues); in apply_iothread_vq_mapping()
1531 for (unsigned i = cur_iothread; i < num_queues; in apply_iothread_vq_mapping()
1581 s->vq_aio_context = g_new(AioContext *, conf->num_queues); in virtio_blk_vq_aio_context_init()
1586 conf->num_queues, in virtio_blk_vq_aio_context_init()
1594 for (unsigned i = 0; i < conf->num_queues; i++) { in virtio_blk_vq_aio_context_init()
1602 for (unsigned i = 0; i < conf->num_queues; i++) { in virtio_blk_vq_aio_context_init()
1641 unsigned nvqs = s->conf.num_queues; in virtio_blk_start_ioeventfd()
1758 unsigned nvqs = s->conf.num_queues; in virtio_blk_stop_ioeventfd()
1839 if (conf->num_queues == VIRTIO_BLK_AUTO_NUM_QUEUES) { in virtio_blk_device_realize()
1840 conf->num_queues = 1; in virtio_blk_device_realize()
1842 if (!conf->num_queues) { in virtio_blk_device_realize()
1910 for (i = 0; i < conf->num_queues; i++) { in virtio_blk_device_realize()
1913 qemu_coroutine_inc_pool_size(conf->num_queues * conf->queue_size / 2); in virtio_blk_device_realize()
1923 for (i = 0; i < conf->num_queues; i++) { in virtio_blk_device_realize()
1958 for (i = 0; i < conf->num_queues; i++) { in virtio_blk_device_unrealize()
1961 qemu_coroutine_dec_pool_size(conf->num_queues * conf->queue_size / 2); in virtio_blk_device_unrealize()
1997 DEFINE_PROP_UINT16("num-queues", VirtIOBlock, conf.num_queues,