Lines Matching full:shared
237 qemu_close(s->vhost_vdpa.shared->device_fd); in vhost_vdpa_cleanup()
238 g_clear_pointer(&s->vhost_vdpa.shared->iova_tree, vhost_iova_tree_delete); in vhost_vdpa_cleanup()
239 g_free(s->vhost_vdpa.shared); in vhost_vdpa_cleanup()
334 v->shared->svq_switching = enable ? in vhost_vdpa_net_log_global_enable()
348 v->shared->svq_switching = SVQ_TSTATE_DONE; in vhost_vdpa_net_log_global_enable()
384 v->shared->shadow_data = v->shadow_vqs_enabled; in vhost_vdpa_net_data_start()
466 r = ioctl(v->shared->device_fd, VHOST_VDPA_SET_GROUP_ASID, &asid); in vhost_vdpa_set_address_space_id()
476 VhostIOVATree *tree = v->shared->iova_tree; in vhost_vdpa_cvq_unmap_buf()
492 r = vhost_vdpa_dma_unmap(v->shared, v->address_space_id, map->iova, in vhost_vdpa_cvq_unmap_buf()
511 r = vhost_iova_tree_map_alloc(v->shared->iova_tree, &map, taddr); in vhost_vdpa_cvq_map_buf()
523 r = vhost_vdpa_dma_map(v->shared, v->address_space_id, map.iova, in vhost_vdpa_cvq_map_buf()
532 vhost_iova_tree_remove(v->shared->iova_tree, map); in vhost_vdpa_cvq_map_buf()
553 if (v->shared->shadow_data) { in vhost_vdpa_net_cvq_start()
570 cvq_group = vhost_vdpa_get_vring_group(v->shared->device_fd, in vhost_vdpa_net_cvq_start()
1662 VhostVDPAShared *shared, in net_vhost_vdpa_init() argument
1695 s->vhost_vdpa.shared = g_new0(VhostVDPAShared, 1); in net_vhost_vdpa_init()
1696 s->vhost_vdpa.shared->device_fd = vdpa_device_fd; in net_vhost_vdpa_init()
1697 s->vhost_vdpa.shared->iova_range = iova_range; in net_vhost_vdpa_init()
1698 s->vhost_vdpa.shared->shadow_data = svq; in net_vhost_vdpa_init()
1699 s->vhost_vdpa.shared->iova_tree = vhost_iova_tree_new(iova_range.first, in net_vhost_vdpa_init()
1714 s->vhost_vdpa.shared = shared; in net_vhost_vdpa_init()
1835 VhostVDPAShared *shared = NULL; in net_init_vhost_vdpa() local
1838 shared = DO_UPCAST(VhostVDPAState, nc, ncs[0])->vhost_vdpa.shared; in net_init_vhost_vdpa()
1842 iova_range, features, shared, errp); in net_init_vhost_vdpa()
1849 VhostVDPAShared *shared = s0->vhost_vdpa.shared; in net_init_vhost_vdpa() local
1853 opts->x_svq, iova_range, features, shared, in net_init_vhost_vdpa()