search for: vhost_vdpa_net_first_nc_vdpa

Displaying 2 results from an estimated 2 matches for "vhost_vdpa_net_first_nc_vdpa".

2023 Mar 06
0
[PATCH v4 01/15] vdpa net: move iova tree creation from init to start
...ze_t vhost_vdpa_receive(NetClientState *nc, const uint8_t *buf, > > >>> return size; > > >>> } > > >>> > > >>> +/** From any vdpa net client, get the netclient of first queue pair */ > > >>> +static VhostVDPAState *vhost_vdpa_net_first_nc_vdpa(VhostVDPAState *s) > > >>> +{ > > >>> + NICState *nic = qemu_get_nic(s->nc.peer); > > >>> + NetClientState *nc0 = qemu_get_peer(nic->ncs, 0); > > >>> + > > >>> + return DO_UPCAST(VhostVDPAState, nc, nc0); >...
2023 Feb 22
0
[PATCH v2 07/13] vdpa: add vdpa net migration state notifier
...t here */ > typedef struct VhostVDPAState { > NetClientState nc; > struct vhost_vdpa vhost_vdpa; > + Notifier migration_state; > VHostNetState *vhost_net; > > /* Control commands shadow buffers */ > @@ -241,10 +243,79 @@ static VhostVDPAState *vhost_vdpa_net_first_nc_vdpa(VhostVDPAState *s) > return DO_UPCAST(VhostVDPAState, nc, nc0); > } > > +static void vhost_vdpa_net_log_global_enable(VhostVDPAState *s, bool enable) > +{ > + struct vhost_vdpa *v = &s->vhost_vdpa; > + VirtIONet *n; > + VirtIODevice *vdev; > +...