search for: vhost_vdpa_do_dma_map

Displaying 7 results from an estimated 7 matches for "vhost_vdpa_do_dma_map".

2020 Feb 05
1
[PATCH] vhost: introduce vDPA based backend
...for userspace to use. Userspace can > > > > > use vhost ioctls on top of this char device to setup the backend. > > > > > > > > > > Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> > > [...] > > > > > > > +static long vhost_vdpa_do_dma_mapping(struct vhost_vdpa *v) { > > > > > + /* TODO: fix this */ > > > > > > > > Before trying to do this it looks to me we need the following during > > > > the probe > > > > > > > > 1) if set_map() is not supported by the vD...
2020 Feb 04
10
[PATCH] vhost: introduce vDPA based backend
...gt; + cb.callback = NULL; > + cb.private = NULL; > + } > + ops->set_vq_cb(vdpa, idx, &cb); > + break; > + > + case VHOST_SET_VRING_NUM: > + ops->set_vq_num(vdpa, idx, vq->num); > + break; > + } > + > + return r; > +} > + > +static long vhost_vdpa_do_dma_mapping(struct vhost_vdpa *v) > +{ > + /* TODO: fix this */ Before trying to do this it looks to me we need the following during the probe 1) if set_map() is not supported by the vDPA device probe the IOMMU that is supported by the vDPA device 2) allocate IOMMU domain And then: 3) pin page...
2020 Feb 04
10
[PATCH] vhost: introduce vDPA based backend
...gt; + cb.callback = NULL; > + cb.private = NULL; > + } > + ops->set_vq_cb(vdpa, idx, &cb); > + break; > + > + case VHOST_SET_VRING_NUM: > + ops->set_vq_num(vdpa, idx, vq->num); > + break; > + } > + > + return r; > +} > + > +static long vhost_vdpa_do_dma_mapping(struct vhost_vdpa *v) > +{ > + /* TODO: fix this */ Before trying to do this it looks to me we need the following during the probe 1) if set_map() is not supported by the vDPA device probe the IOMMU that is supported by the vDPA device 2) allocate IOMMU domain And then: 3) pin page...
2020 Feb 05
0
[PATCH] vhost: introduce vDPA based backend
...t;>>> vhost-vdpa/$vdpa_device_index for userspace to use. Userspace can >>>> use vhost ioctls on top of this char device to setup the backend. >>>> >>>> Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> > [...] > >>>> +static long vhost_vdpa_do_dma_mapping(struct vhost_vdpa *v) { >>>> + /* TODO: fix this */ >>> >>> Before trying to do this it looks to me we need the following during >>> the probe >>> >>> 1) if set_map() is not supported by the vDPA device probe the IOMMU >>> that i...
2020 Feb 05
0
[PATCH] vhost: introduce vDPA based backend
...; > Userspace > > >>>> can use vhost ioctls on top of this char device to setup the backend. > > >>>> > > >>>> Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> > > > [...] > > > > > >>>> +static long vhost_vdpa_do_dma_mapping(struct vhost_vdpa *v) { > > >>>> + /* TODO: fix this */ > > >>> > > >>> Before trying to do this it looks to me we need the following during > > >>> the probe > > >>> > > >>> 1) if set_map() is not supp...
2020 Feb 06
0
[PATCH] vhost: introduce vDPA based backend
...e to use. >> Userspace >>>>>> can use vhost ioctls on top of this char device to setup the backend. >>>>>> >>>>>> Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> >>> [...] >>> >>>>>> +static long vhost_vdpa_do_dma_mapping(struct vhost_vdpa *v) { >>>>>> + /* TODO: fix this */ >>>>> Before trying to do this it looks to me we need the following during >>>>> the probe >>>>> >>>>> 1) if set_map() is not supported by the vDPA device probe th...
2020 Feb 05
0
[PATCH] vhost: introduce vDPA based backend
...+ } > > + ops->set_vq_cb(vdpa, idx, &cb); > > + break; > > + > > + case VHOST_SET_VRING_NUM: > > + ops->set_vq_num(vdpa, idx, vq->num); > > + break; > > + } > > + > > + return r; > > +} > > + > > +static long vhost_vdpa_do_dma_mapping(struct vhost_vdpa *v) > > +{ > > + /* TODO: fix this */ > > > Before trying to do this it looks to me we need the following during the > probe > > 1) if set_map() is not supported by the vDPA device probe the IOMMU that is > supported by the vDPA device >...