search for: vdpa_device_fd

Displaying 4 results from an estimated 4 matches for "vdpa_device_fd".

2023 Mar 06
0
[PATCH v4 01/15] vdpa net: move iova tree creation from init to start
...(), > > >>> vhost_vdpa_net_cvq_cmd_page_len()); > > >>> @@ -760,7 +821,6 @@ int net_init_vhost_vdpa(const Netdev *netdev, const char *name, > > >>> uint64_t features; > > >>> int vdpa_device_fd; > > >>> g_autofree NetClientState **ncs = NULL; > > >>> - g_autoptr(VhostIOVATree) iova_tree = NULL; > > >>> struct vhost_vdpa_iova_range iova_range; > > >>> NetClientState *nc; > > >>> int qu...
2023 Mar 06
0
[PATCH v4 12/15] vdpa: block migration if device has unsupported features
...int net_init_vhost_vdpa(const Netdev *netdev, const char *name, > > >>>> for (i = 0; i < queue_pairs; i++) { > > >>>> ncs[i] = net_vhost_vdpa_init(peer, TYPE_VHOST_VDPA, name, > > >>>> vdpa_device_fd, i, 2, true, opts->x_svq, > > >>>> - iova_range); > > >>>> + iova_range, features); > > >>>> if (!ncs[i]) > > >>>> goto err; &...
2023 Feb 22
0
[PATCH v2 09/13] vdpa net: block migration if the device has CVQ
...vhost-vdpa.c > @@ -955,11 +955,17 @@ int net_init_vhost_vdpa(const Netdev *netdev, const char *name, > } > > if (has_cvq) { > + VhostVDPAState *s; > + > nc = net_vhost_vdpa_init(peer, TYPE_VHOST_VDPA, name, > vdpa_device_fd, i, 1, false, > opts->x_svq, iova_range); > if (!nc) > goto err; > + > + s = DO_UPCAST(VhostVDPAState, nc, nc); > + error_setg(&s->vhost_vdpa.dev->migration_blocker, > + &quo...
2023 Feb 22
0
[PATCH v2 07/13] vdpa: add vdpa net migration state notifier
...a.dev; > if (dev->vq_index + dev->nvqs == dev->vq_index_end) { > g_clear_pointer(&s->vhost_vdpa.iova_tree, vhost_iova_tree_delete); > @@ -741,6 +816,7 @@ static NetClientState *net_vhost_vdpa_init(NetClientState *peer, > s->vhost_vdpa.device_fd = vdpa_device_fd; > s->vhost_vdpa.index = queue_pair_index; > s->always_svq = svq; > + s->migration_state.notify = vdpa_net_migration_state_notifier; > s->vhost_vdpa.shadow_vqs_enabled = svq; > s->vhost_vdpa.iova_range = iova_range; > s->vhost_vdp...